forked from stanleygomes/nodevader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
executable file
·66 lines (66 loc) · 1.55 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
version: '3.1'
services:
mariadb:
image: mariadb
container_name: nodetello-mariadb
restart: always
ports:
- 3306:3306
environment:
- MYSQL_DATABASE=nodetello
- MYSQL_USER=nodetello
- MYSQL_PASSWORD=nodetello
- MYSQL_ROOT_PASSWORD=nodetello
volumes:
- ./docker/storage/mariadb:/var/lib/mysql
- ./docker/config/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
postgres:
image: postgres:9.6-alpine
container_name: nodetello-postgres
environment:
POSTGRES_PASSWORD: nodetello
POSTGRES_USER: nodetello
POSTGRES_DB: nodetello
stdin_open: true
volumes:
- ./docker/storage/postgresql:/var/lib/postgresql
tty: true
ports:
- 5432:5432/tcp
flyway:
container_name: nodetello-flyway
image: boxfuse/flyway:5.2.4
command: -url=jdbc:mysql://nodejs-mariadb/nodetello -schemas=nodetello -user=nodetello -password=nodetello -connectRetries=60 migrate
volumes:
- ./docker/migrations:/flyway/sql
depends_on:
- mariadb
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: nodetello-phpmyadmin
links:
- mariadb
environment:
PMA_HOST: mariadb
PMA_PORT: 3306
ports:
- '8888:80'
volumes:
- /sessions
links:
- mariadb
depends_on:
- mariadb
api:
build: ./docker/bin/nodejs
image: api
container_name: nodetello-api
environment:
- NODE_ENV=development
command: npm run dev
ports:
- 3000:3000
volumes:
- .:/app
depends_on:
- flyway