-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
86 lines (86 loc) · 2.02 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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
version: "3"
services:
backend:
container_name: code_party_backend
env_file:
- .env.backend
build:
context: .
dockerfile: ./.docker/Dockerfile.backend
args:
- GIT_USER=${GIT_USER}
- GIT_TOKEN=${GIT_TOKEN}
volumes:
- backend:/backend
tty: true
working_dir: /backend
command: pipenv run python manage.py runserver 0.0.0.0:8000
ports:
- 8000:8000
firebase:
container_name: code_party_firebase
env_file:
- .env.firebase
build:
context: .
dockerfile: ".docker/Dockerfile.firebase"
args:
- GIT_USER=${GIT_USER}
- GIT_TOKEN=${GIT_TOKEN}
volumes:
- firebase:/firebese
tty: true
working_dir: /firebase
command: yarn start
ports:
- 4000:4000 # Emulator Suite UI
- 9099:9099 # Authentication
#- 5000:5000 # Firebase Hosting
#- 5001:5001 # Clound Functions
- 9000:9000 # Realtime Database
#- 8080:8080 # Cloud Firestore
#- 8085:8085 # Cloud Pub/Sub
- 4400:4400 # Emuylator Hub
- 4500:4500 # Other reserved ports
frontend:
container_name: code_party_frontend
env_file:
- .env
environment:
- WATCHPACK_POLLING=true
build:
context: .
dockerfile: ./.docker/Dockerfile.frontend
image: code_party_frontend
volumes:
- .:/frontend
- node_modules:/frontend/node_modules
tty: true
working_dir: /frontend
command: yarn start
ports:
- 3000:3000
links:
- backend
- firebase
storybook:
container_name: code_party_storybook
env_file:
- .env
environment:
- WATCHPACK_POLLING=true
image: code_party_frontend
volumes:
- .:/frontend
- node_modules:/frontend/node_modules
tty: true
working_dir: /frontend
command: yarn storybook
ports:
- 6006:6006
links:
- frontend
volumes:
backend:
firebase:
node_modules: