forked from kernelwhisperer/protofun-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (50 loc) · 1.42 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
version: '3.8'
services:
protofun-service:
image: protofun-service
ports:
- "3030:3030"
expose:
- "3030"
environment:
DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@protofun_service_db/${POSTGRES_DB}?sslmode=disable
VIRTUAL_HOST: service.protocol.fun
VIRTUAL_PORT: 3030
LETSENCRYPT_HOST: service.protocol.fun
LETSENCRYPT_EMAIL: hello@danielconstantin.net
networks:
- graph-node_proxy
depends_on:
- postgres_db
postgres_db:
container_name: protofun_service_db
image: postgres:13
command: ["postgres", "-cshared_preload_libraries=pg_stat_statements"]
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
POSTGRES_INITDB_ARGS: "-E UTF8 --locale=C"
ports:
- "5433:5432"
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- graph-node_proxy
pgweb:
image: sosedoff/pgweb
restart: on-failure
command: ["pgweb", "--bind=0.0.0.0", "--port=5433", "--listen=8081", "--binary-codec=hex"]
environment:
PGWEB_DATABASE_URL: postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@protofun_service_db/${POSTGRES_DB}?sslmode=disable
ports:
- "8082:8081"
depends_on:
- postgres_db
networks:
- graph-node_proxy
volumes:
postgres_data:
networks:
graph-node_proxy:
external: true