-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
85 lines (78 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
85 lines (78 loc) · 1.81 KB
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
version: "3.9"
services:
frontend:
container_name: frontend
restart: on-failure
build:
context: ./frontend
dockerfile: dev.Dockerfile
ports:
- 3000:3000
volumes:
- ./frontend:/app
- ./backend/src/schema.gql:/backend/src/schema.gql
storybook:
container_name: storybook
restart: on-failure
build:
context: ./frontend
dockerfile: dev.Dockerfile
ports:
- 6006:6006
volumes:
- ./frontend:/app
- ./backend/src/schema.gql:/backend/src/schema.gql
command: "npm run storybook"
codegen-frontend:
container_name: codegen-frontend
restart: on-failure
build:
context: ./frontend
dockerfile: dev.Dockerfile
volumes:
- ./frontend:/app
- ./backend/src/schema.gql:/backend/src/schema.gql
command: "npm run gen:dev"
backend:
container_name: backend
restart: on-failure
build:
context: ./backend
dockerfile: dev.Dockerfile
depends_on:
- mongo
ports:
- 4001:4001
- 9229:9229
environment:
- MONGO_CONNECTION=mongodb://mongo:27017
volumes:
- ./backend:/app
env_file:
- ./backend/private/firebase.env
codegen-backend:
container_name: codegen-backend
restart: on-failure
build:
context: ./backend
dockerfile: dev.Dockerfile
volumes:
- ./backend:/app
command: "npm run gen:dev"
mongo:
image: mongo:5.0.3
container_name: mongo
ports:
- 27017:27017
volumes:
- ./volumes/data/db:/data/db
command: --quiet --logpath /dev/null
nginx:
image: nginx:1.21.3-alpine
container_name: nginx
restart: on-failure
ports:
- 8080:8080
volumes:
- ./proxy/nginx.dev.conf:/etc/nginx/conf.d/default.conf
- ./proxy/shared:/etc/nginx/shared