-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
57 lines (53 loc) · 1.02 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
version: "3"
services:
app:
container_name: app_container
build: .
ports:
- 8080:8080
restart: on-failure
volumes:
- app_volume:/usr/src/app/
environment:
APP_VOLUME: /usr/src/app/
depends_on:
- db
networks:
- backend_network
env_file:
- web.env
db:
image: postgres:latest
container_name: db_container
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: secret
POSTGRES_DB: postgres
DATABASE_HOST: host
ports:
- "5432:5432"
volumes:
- db_volume:/var/lib/postgresql/data
networks:
- backend_network
pgadmin:
image: dpage/pgadmin4
container_name: pgadmin_container
environment:
PGADMIN_DEFAULT_EMAIL: user
PGADMIN_DEFAULT_PASSWORD: secret
logging:
driver: "none"
depends_on:
- db
ports:
- "5050:80"
networks:
- backend_network
restart: unless-stopped
volumes:
app_volume:
db_volume:
networks:
backend_network:
driver: bridge