-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.yml
71 lines (70 loc) · 1.65 KB
/
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
67
68
69
70
71
services:
frontend:
build:
# context: frontend
# dockerfile: .devcontainer/Dockerfile
context: .
dockerfile: frontend/.devcontainer/Dockerfile
# target: dev
command: sleep infinity
# command: npm run start
depends_on:
- backend
env_file:
- .env
- .env.secret
ports:
- "3000:3000"
volumes:
# - ./frontend:/usr/local/src
- .:/app
- frontend-extensions:/root/.vscode-server/extensions
# - node_modules:/usr/local/src/node_modules
backend:
build:
# context: backend
# dockerfile: .devcontainer/Dockerfile
context: .
dockerfile: backend/.devcontainer/Dockerfile
# target: dev
command: sleep infinity
depends_on:
- mysql
# - firebase
environment:
USE_LOCAL_BACKEND: 1
env_file:
- .env
- .env.secret
volumes:
# - ./backend:/go/src/app
- .:/app
- backend-extensions:/root/.vscode-server/extensions
ports:
- "8080:8080"
- "2345:2345"
mysql:
image: mysql:8-oracle
env_file:
- .env
command: mysqld --default_authentication_plugin=mysql_native_password
ports:
- "3306:3306"
volumes:
- mysql-data:/var/lib/mysql
# firebase:
# build:
# context: firebase
# command: firebase emulators:start
# ports:
# - "4000:4000"
# - "9099:9099"
# volumes:
# - ./firebase/firebase.json:/app/firebase.json
# - ./firebase/.firebaserc:/app/.firebaserc
# - ./firebase/.config/configstore:/root/.config/configstore
volumes:
frontend-extensions:
node_modules:
backend-extensions:
mysql-data: