generated from stanleygomes/nodevader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
executable file
·37 lines (37 loc) · 956 Bytes
/
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
version: '3.1'
services:
mariadb:
image: mariadb
container_name: nodevader-mariadb
restart: always
ports:
- 3333:3306
environment:
- MYSQL_DATABASE=nodevader
- MYSQL_USER=nodevader
- MYSQL_PASSWORD=nodevader
- MYSQL_ROOT_PASSWORD=nodevader
volumes:
- ./docker/storage/mariadb:/var/lib/mysql
- ./docker/config/mysql.cnf:/etc/mysql/conf.d/mysql.cnf
flyway:
container_name: nodevader-flyway
image: boxfuse/flyway:5.2.4
command: -url=jdbc:mysql://mariadb/nodevader -schemas=nodevader -user=nodevader -password=nodevader -connectRetries=10 migrate
volumes:
- ./docker/migrations:/flyway/sql
depends_on:
- mariadb
api:
build: ./docker/bin/nodejs
image: api
container_name: nodevader-api
environment:
- NODE_ENV=development
command: npm run dev
ports:
- 8888:3000
volumes:
- .:/app
depends_on:
- flyway