-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
47 lines (44 loc) · 896 Bytes
/
compose.yaml
File metadata and controls
47 lines (44 loc) · 896 Bytes
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
services:
db:
image: postgres:alpine
restart: always
environment:
POSTGRES_PASSWORD: changeme # don't do this
PGUSER: postgres
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 1s
timeout: 5s
retries: 10
ports:
- 5432:5432
networks:
- backend
adminer:
image: adminer
restart: always
ports:
- 8080:8080
networks:
- backend
api:
restart: always
build: .
# make sure our DB is up and running before building
depends_on:
db:
condition: service_healthy
ports:
- 3000:3000
# need to play with this, let the app respawn when changed
develop:
watch:
- action: sync
path: .
target: /code
networks:
- backend
# allow our backend apps to talk to each other
networks:
backend:
driver: bridge