-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
69 lines (64 loc) · 1.74 KB
/
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
version: '3.4'
services:
acme-interface-webapi:
container_name: acme-interface-webapi
image: acme-interface-webapi:latest
build:
context: .
dockerfile: Acme.Interface.WebAPI/Dockerfile
environment:
- PostgreSQL__ConnectionString=host=acme-interface-webapi-database;port=5432;database=acme;username=user;password=password
volumes:
- ./docker-data/acme-interface-webapi/:/acme-interface-webapi
ports:
- "9010:8080"
- "9011:8081"
depends_on:
- acme-interface-webapi-database
- acme-test-database
networks:
- acme-network
acme-interface-webapi-database:
container_name: acme-interface-webapi-database
image: postgres:14.3
ports:
- "9101:5432"
restart: always
volumes:
- ./docker-data/acme-interface-webapi-database/postgresql/data:/var/lib/postgresql/data
- ./docker-data/db-exports/:/db-exports/
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- POSTGRES_DB=acme
networks:
- acme-network
acme-test-database:
container_name: acme-test-database
image: postgres:14.3
ports:
- "9102:5432"
restart: always
environment:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test123
- POSTGRES_DB=acme-test
networks:
- acme-network
pgadmin:
container_name: pgadmin4
image: dpage/pgadmin4:6.10
restart: always
volumes:
- ./docker-data/pgadmin4:/var/lib/pgadmin
- ./docker-data/pgadmin4/servers.json:/pgadmin4/servers.json
environment:
PGADMIN_DEFAULT_EMAIL: [email protected]
PGADMIN_DEFAULT_PASSWORD: root
ports:
- "9100:80"
networks:
- acme-network
networks:
acme-network:
driver: bridge