-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (70 loc) · 1.55 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
services:
frontend:
build:
context: frontend
target: development
environment:
- PORT=${FRONTEND_PORT}
# TODO: Update the name for these
- VUE_APP_GRAPHQL_HTTP=${GRAPHQL_HTTP}
- VUE_APP_GRAPHQL_WS=${GRAPHQL_WS}
networks:
- public
ports:
- ${FRONTEND_PORT}:${FRONTEND_PORT}
volumes:
- ./frontend/src:/code/src:ro
- ./frontend/package.json:/code/package.json
- ./frontend/yarn.lock:/code/yarn.lock
depends_on:
- backend
backend:
build:
context: backend
environment:
- PORT=${BACKEND_PORT}
- DATABASE_NAME
- DATABASE_USERNAME
- DATABASE_PASSWORD
- DATABASE_HOST
- REDIS_PORT
- REDIS_HOST
- MAILGUN_API_KEY
- MAILGUN_DOAMAIN_NAME
- MAILGUN_TEST_MODE
networks:
- private
- public
ports:
- ${BACKEND_PORT}:${BACKEND_PORT}
volumes:
- ./backend/src:/code/src:ro
- ./backend/package.json:/code/package.json
- ./backend/yarn.lock:/code/yarn.lock
depends_on:
- db
- redis
db:
image: postgres:12-alpine
restart: always
environment:
- POSTGRES_DB=${DATABASE_NAME}
- POSTGRES_USER=${DATABASE_USERNAME}
- POSTGRES_PASSWORD=${DATABASE_PASSWORD}
networks:
- private
ports:
- 5432:${DATABASE_PORT}
volumes:
- db-data:/var/lib/postgresql/data
redis:
image: redis:6.0.9-alpine
networks:
- private
ports:
- 6379:${REDIS_PORT}
networks:
public:
private:
volumes:
db-data: