-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
100 lines (89 loc) · 2.04 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
version: '3.7'
services:
webapp:
container_name: webapp_container
build:
context: ./webapp
args:
REACT_APP_BACKEND_URL: http://localhost:80
dockerfile: Dockerfile
ports:
- '1337:80'
networks:
- postgres
depends_on:
- app
profiles:
- donotstart
app:
container_name: app_container
build: .
environment:
TODOLIST_HTTP__PORT: 80
TODOLIST_HTTP__SHUTDOWN_TIMEOUT: 10
TODOLIST_POSTGRES__HOST: postgres
TODOLIST_POSTGRES__PORT: 5432
TODOLIST_POSTGRES__USER: postgres
TODOLIST_POSTGRES__PASSWORD: passwd
TODOLIST_POSTGRES__DB_NAME: todosdb
TODOLIST_POSTGRES__SSL_MODE: disable
configs:
- source: configs.yaml
target: /configs.yaml
networks:
- postgres
depends_on:
- postgres
ports:
- '80:80'
restart: unless-stopped
postgres:
container_name: postgres_container
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-postgres}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-passwd}
PGDATA: /data/postgres
POSTGRES_DB: todosdb
volumes:
- postgres:/data/postgres
ports:
- "5432:5432"
networks:
- postgres
restart: unless-stopped
pgadmin:
container_name: pgadmin_container
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_DEFAULT_EMAIL:[email protected]}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_DEFAULT_PASSWORD:-admin}
PGADMIN_CONFIG_SERVER_MODE: 'False'
volumes:
- pgadmin:/var/lib/pgadmin
ports:
- "${PGADMIN_PORT:-5050}:80"
networks:
- postgres
restart: unless-stopped
depends_on:
- postgres
networks:
postgres:
driver: bridge
volumes:
postgres:
pgadmin:
configs:
configs.yaml:
content: |
http:
port: 80
shutdown_timeout: 10
postgres:
host: postgres
port: 5432
user: postgres
password: passwd
db_name: todosdb
ssl_mode: disable