-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (55 loc) · 1.13 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
version: "3"
services:
main-mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: dev
MYSQL_USER: dev
MYSQL_PASSWORD: password
ports:
- "3306:3306"
volumes:
- db:/var/lib/mysql
shadow-mysql:
image: mysql
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: shadow
MYSQL_USER: shadow
MYSQL_PASSWORD: shadow
ports:
- "13306:3306"
volumes:
- db-shadow:/var/lib/mysql
frontend:
image: workflow-manager-dev
build:
context: .
dockerfile: Dockerfile.dev
restart: unless-stopped
command: yarn dev
volumes:
- .:/app
- /app/node_modules
- /app/.next
ports:
- "3000:3000"
environment:
NODE_ENV: development
DATABASE_URL: "mysql://dev:password@main-mysql:3306/dev"
cron:
image: workflow-manager-dev
pull_policy: never
depends_on:
- frontend
command: yarn run-cron
volumes:
- .:/app
- /app/node_modules
environment:
NODE_ENV: development
BASE_URL: "http://frontend:3000"
volumes:
db:
db-shadow: