67 lines
1.4 KiB
YAML
67 lines
1.4 KiB
YAML
|
version: '3'
|
||
|
|
||
|
services:
|
||
|
|
||
|
letsproxy:
|
||
|
image: neilpang/letsproxy
|
||
|
environment:
|
||
|
- GANDI_LIVEDNS_KEY=
|
||
|
ports:
|
||
|
- "80:80"
|
||
|
- "443:443"
|
||
|
volumes:
|
||
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
||
|
- ./proxy/certs:/etc/nginx/certs
|
||
|
- ./proxy/acme:/acmecerts:rw
|
||
|
- ./proxy/conf.d:/etc/nginx/conf.d
|
||
|
- ./proxy/vhost.d:/etc/nginx/vhost.d \
|
||
|
- ./proxy/stream.d:/etc/nginx/stream.d \
|
||
|
- ./proxy/dhparam:/etc/nginx/dhparam \
|
||
|
network_mode: "host"
|
||
|
|
||
|
db:
|
||
|
image: postgres
|
||
|
container_name: postgres
|
||
|
volumes:
|
||
|
- db:/var/lib/postgres
|
||
|
- /etc/localtime:/etc/localtime:ro
|
||
|
environment:
|
||
|
- POSTGRES_USER=gancio
|
||
|
- POSTGRES_DB=gancio
|
||
|
- POSTGRES_PASSWORD=
|
||
|
restart: always
|
||
|
ports:
|
||
|
- 5432:5432
|
||
|
networks:
|
||
|
- gancio_network
|
||
|
|
||
|
gancio:
|
||
|
build: .
|
||
|
image: node:latest
|
||
|
environment:
|
||
|
- DEBUG=*,-babel,-follow-redirects,-send,-body-parser:*,-express:*,-connect:*,-sequelize:*
|
||
|
container_name: gancio
|
||
|
restart: always
|
||
|
command: gancio start --docker --db=postgres
|
||
|
volumes:
|
||
|
- ./config.json:/opt/gancio/config.json
|
||
|
- ./uploads:/opt/gancio/uploads
|
||
|
depends_on:
|
||
|
- db
|
||
|
- letsproxy
|
||
|
environment:
|
||
|
- VIRTUAL_HOST=www.campiinrete.org
|
||
|
- ENABLE_ACME=true
|
||
|
ports:
|
||
|
- "0.0.0.0:13120:13120"
|
||
|
networks:
|
||
|
- gancio_network
|
||
|
|
||
|
volumes:
|
||
|
db:
|
||
|
|
||
|
networks:
|
||
|
gancio_network:
|
||
|
external: true
|
||
|
|