-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.35 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
# compose/docker-compose.yml.local-ssl
# - database port 5432 exposed to host (security risk)
# - nginx port 8080, 8443 exposed to host (http, https) - self signed certs by default
# - vouch-proxy port 9090 exposed ot host
services:
database:
# default port 5432
image: postgres:16
container_name: pubtrkr-database
networks:
- pubtrkr-network
ports:
- "5432:5432"
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
PGDATA: ${PGDATA}
# volumes:
# - ${HOST_DB_DATA}:/var/lib/postgresql/data
restart: unless-stopped
nginx:
# default port 8080, 8443
image: nginx:1
container_name: pubtrkr-nginx
networks:
- pubtrkr-network
ports:
- "8080:80"
- "8443:443"
volumes:
- .:/code
- ${NGINX_DEFAULT_CONF}:/etc/nginx/conf.d/default.conf
- ${NGINX_NGINX_CONF}:/etc/nginx/nginx.conf
- ${NGINX_SSL_CERTS_DIR}:/etc/ssl:ro
restart: unless-stopped
vouch-proxy:
# default port 9090
container_name: pubtrkr-vouch-proxy
image: fabrictestbed/vouch-proxy:0.27.1
networks:
- pubtrkr-network
ports:
- "127.0.0.1:9090:9090"
volumes:
- ./vouch:/config
restart: unless-stopped
networks:
pubtrkr-network:
name: pubtrkr-network
driver: bridge