-
Notifications
You must be signed in to change notification settings - Fork 15
/
docker-compose.yml
81 lines (77 loc) · 2.33 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
---
version: "3.9"
services:
postgres:
image: docker.io/library/postgres:13.10-alpine
# this is for debugging; graphql connects to PG via internal docker network
ports:
- "5431:5432"
environment:
POSTGRES_USER: happening-username
POSTGRES_PASSWORD: happening-password
POSTGRES_DB: happening-db-name
volumes:
- postgres-data:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U happening-username -d happening-db-name"]
interval: 10s
timeout: 5s
retries: 5
networks:
default:
aliases:
- happening-db-host
labels:
org.codeforsanjose.app: happening-atm
graphql:
build:
dockerfile: docker/graphql/Dockerfile
image: happening-atm-graphql:latest
ports:
- "3000:3000"
volumes:
- "./backend/graphql_api:/usr/src/app"
- /usr/src/app/node_modules
env_file: ./docker/graphql/.env
depends_on:
postgres:
condition: service_healthy
labels:
org.codeforsanjose.app: happening-atm
backend:
build:
dockerfile: docker/backend/Dockerfile
image: happening-atm-backend:latest
ports:
- "3002:3002"
volumes:
- "./backend/agenda_upload_service:/usr/src/app"
- /usr/src/app/node_modules
env_file: ./docker/backend/.env
depends_on:
postgres:
condition: service_healthy
labels:
org.codeforsanjose.app: happening-atm
frontend:
# node-sass 4* needs node version 14
build:
dockerfile: docker/frontend/Dockerfile
target: dev
image: happening-atm-frontend:latest
ports:
- "3001:3000"
volumes:
- "./frontend:/usr/src/app"
- /usr/src/app/node_modules
stdin_open: true
env_file: ./docker/frontend/.env
depends_on:
postgres:
condition: service_healthy
labels:
org.codeforsanjose.app: happening-atm
volumes:
postgres-data:
labels:
org.codeforsanjose.app: happening-atm