-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
61 lines (56 loc) · 1.29 KB
/
docker-compose.yaml
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
version: '3'
volumes:
postgres_data_local: {}
postgres_data_local_backups: {}
services:
django:
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
image: pma_django_local
container_name: pma_django_local
platform: linux/x86_64
depends_on:
- postgres
volumes:
- .:/app:z
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- "8000:8000"
command: /start
postgres:
build:
context: .
dockerfile: compose/local/postgres/Dockerfile
image: postgres
container_name: postgres_pma
ports:
- "5432:5432"
volumes:
- postgres_data_local:/var/lib/postgresql/data:Z
- postgres_data_local_backups:/backups:z
env_file:
- ./.envs/.local/.postgres
environment:
TZ: "Europe/Belgrade"
postgres-test:
build:
context: .
dockerfile: compose/local/postgres/Dockerfile
image: postgres_test
container_name: postgres_pma_test
ports:
- "5433:5432"
env_file:
- ./.envs/.local/.postgres
pgadmin-pma:
container_name: pgadmin4-pma
image: dpage/pgadmin4
restart: always
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: password
ports:
- "5050:80"