-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
56 lines (52 loc) · 1.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
56 lines (52 loc) · 1.28 KB
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
# Use postgres/example user/password credentials
services:
proxy:
image: nginx:${NGINX_RELEASE}
container_name: ${ENV_NAME}_nginx
restart: unless-stopped
environment:
NGINX_HOST: ${ENV_NAME}
NGINX_PORT: ${NGINX_HOSTPORT}
networks:
- frontend
volumes:
- ./config/templates:/etc/nginx/templates
- ./config/certs:/etc/nginx/certs
ports:
- ${NGINX_HOSTPORT}:${NGINX_HOSTPORT}
- 443:443
admin:
image: dpage/pgadmin4:${PGADMIN_RELEASE}
container_name: ${ENV_NAME}_pgadmin
depends_on:
- db
environment:
PGADMIN_DEFAULT_EMAIL: ${PGADMIN_EMAIL}
PGADMIN_DEFAULT_PASSWORD: ${PGADMIN_PASSWORD}
networks:
- frontend
- backend
volumes:
- pga_data:/var/lib/pgadmin
db:
image: postgres:${POSTGRES_RELEASE}
container_name: ${ENV_NAME}_postgres
restart: always
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- ps_data:/var/lib/postgresql/data
networks:
- backend
volumes:
ps_data:
name: ${ENV_NAME}_postgres
pga_data:
name: ${ENV_NAME}_pgadmin
networks:
frontend:
name: ${ENV_NAME}_frontend
backend:
name: ${ENV_NAME}_backend