generated from lucasgdb/relay-graphql-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
67 lines (62 loc) · 1.47 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
version: '3.9'
services:
database:
image: postgres:latest
container_name: database
environment:
- POSTGRES_DB=usefaz_database
- POSTGRES_USER=usefaz_user
- POSTGRES_PASSWORD=usefaz_password
ports:
- 5432:5432
volumes:
- usefaz_database_data:/var/lib/postgresql/data
healthcheck:
test: '!</dev/tcp/db/5432'
interval: 3s
timeout: 3s
start_period: 5s
server:
image: node:lts-alpine3.14
container_name: server
working_dir: /src/apps/server
volumes:
- .:/src
entrypoint: yarn start:dev
ports:
- 3000:3000
- 9229:9229 # enable nodejs devtools debugger
healthcheck:
test: 'wget -nv -t1 --spider http://localhost:3000/hc || exit 1'
interval: 3s
timeout: 3s
start_period: 60s
depends_on:
database:
condition: service_healthy
boletim:
image: node:lts-alpine3.14
container_name: boletim
working_dir: /src/apps/boletim
volumes:
- .:/src
entrypoint: yarn start:dev
ports:
- 8080:8080
depends_on:
server:
condition: service_healthy
admin:
image: node:lts-alpine3.14
container_name: admin
working_dir: /src/apps/admin
volumes:
- .:/src
entrypoint: yarn start:dev
ports:
- 8081:8081
depends_on:
server:
condition: service_healthy
volumes:
usefaz_database_data: