-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
48 lines (43 loc) · 916 Bytes
/
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
version: '3.7'
networks:
hexapp:
name: 'hexapp.localhost'
services:
db:
image: postgres:13
container_name: hexapp-db
restart: unless-stopped
expose:
- 5432 # port for other containers, default
ports:
- 5432:5432 # port for connecting outside docker
environment:
POSTGRES_PASSWORD: hexapp
volumes:
- pgdata13:/var/lib/postgresql/data
networks:
hexapp: null
healthcheck:
test: ['CMD-SHELL', 'pg_isready -U postgres']
interval: 10s
timeout: 5s
retries: 5
api:
build:
context: .
dockerfile: build/dev/Dockerfile
container_name: hexapp-api
environment:
DATABASE_URL: postgresql://postgres:[email protected]:5432
ports:
- 4200:4200
expose:
- 4200
volumes:
- .:/app
networks:
hexapp: null
depends_on:
- 'db'
volumes:
pgdata13: