-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
74 lines (68 loc) · 1.72 KB
/
docker-compose-dev.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
name: navette
services:
postgresql:
container_name: ${COMPOSE_PROJECT_NAME}-postgresql # not horizontally scalable
image: postgres:16-alpine
restart: always
ports:
- 5432:5432 # exposed for migrations
volumes:
- db-data:/var/lib/postgresql/data
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 3s
timeout: 3s
retries: 10
lb:
image: tanguynicolas/navette-lb:latest
pull_policy: always
restart: unless-stopped
ports:
- 80:80
environment:
- BEARER_TOKEN=${BEARER_TOKEN}
depends_on:
- pgadmin
- api
- dozzle
pgadmin:
container_name: ${COMPOSE_PROJECT_NAME}-pgadmin # not horizontally scalable
image: dpage/pgadmin4:8
restart: unless-stopped
expose:
- 80
environment:
- PGADMIN_DEFAULT_EMAIL=${PGADMIN_DEFAULT_EMAIL}
- PGADMIN_DEFAULT_PASSWORD=${PGADMIN_DEFAULT_PASSWORD}
- PGADMIN_DISABLE_POSTFIX=True
- PGADMIN_CONFIG_WTF_CSRF_CHECK_DEFAULT=False
volumes:
- dba-data:/var/lib/pgadmin
api:
image: tanguynicolas/navette-api:latest
pull_policy: always
restart: unless-stopped
expose:
- 80
environment:
- DB_ENABLE_SQLITE=false
- DB_HOSTNAME=postgresql
- DB_USERNAME=${POSTGRES_USER}
- DB_PASSWORD=${POSTGRES_PASSWORD}
- DB_DATABASE=navette
depends_on:
postgresql:
condition: service_healthy
dozzle:
image: amir20/dozzle:latest
restart: unless-stopped
expose:
- 8080
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
volumes:
db-data:
dba-data: