-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-dev.yml
46 lines (44 loc) · 1.27 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
version: '3.4'
services:
db:
image: postgres:16-alpine
container_name: "uni_db"
restart: always
ports:
- "5441:5432"
volumes:
- "./docker/db:/var/lib/postgresql/data"
environment:
TZ: ${TZ}
POSTGRES_DB: ${DB_DATABASE}
POSTGRES_USER: ${DB_USERNAME}
POSTGRES_PASSWORD: ${DB_PASSWORD}
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "${DB_DATABASE}", "-U", "${DB_USERNAME}" ]
retries: 3
timeout: 5s
networks:
- custom
db_test:
image: postgres:16-alpine
container_name: "uni_db_test"
restart: always
ports:
- "5442:5432"
volumes:
- "./docker/db_test:/var/lib/postgresql/data"
environment:
TZ: ${TZ}
POSTGRES_DB: ${DB_DATABASE_TEST}
POSTGRES_USER: ${DB_USERNAME_TEST}
POSTGRES_PASSWORD: ${DB_PASSWORD_TEST}
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "${DB_DATABASE_TEST}", "-U", "${DB_USERNAME_TEST}" ]
retries: 3
timeout: 5s
networks:
- custom
networks:
custom:
driver: bridge
# internal: true