-
Notifications
You must be signed in to change notification settings - Fork 37
/
docker-compose.yml
73 lines (70 loc) · 1.73 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
version: '2'
services:
ddns:
image: davd/docker-ddns:1.2.1
restart: always
environment:
RECORD_TTL: 60
ZONE: '${DOMAIN}'
SHARED_SECRET: '${SHARED_SECRET}'
ports:
- "${DNS_PORT}:53"
- "${DNS_PORT}:53/udp"
volumes:
- ./data/bind-data:/var/cache/bind
networks:
red:
python:
image: pyddns:3.1.1
build: ./docker
restart: always
volumes:
- ./appdata/pyddns:/usr/src/app
- ./appdata/static/node_modules:/usr/src/app/static/node_modules
environment:
DNS_HOST: ddns
DNS_API_PORT: 8080
DNS_DOMAIN: '${DOMAIN}'
DNS_SHARED_SECRET: '${SHARED_SECRET}'
DNS_ALLOW_AGENT: '${DNS_ALLOW_AGENT}'
DB_HOST: postgres
DB_NAME: '${DATABASE_NAME}'
DB_USER: '${DATABASE_USER}'
DB_PASSWORD: '${DATABASE_PASS}'
DJANGO_ADMIN_URL: '${DJANGO_ADMIN_URL}'
DJANGO_SU_NAME: '${DJANGO_SU_NAME}'
DJANGO_SU_EMAIL: '${DJANGO_SU_EMAIL}'
DJANGO_SU_PASSWORD: '${DJANGO_SU_PASSWORD}'
OWN_ADMIN: '${OWN_ADMIN}'
#MAX_DOMAINS_USER: '${MAX_DOMAINS_USER}'
depends_on:
- "postgres"
networks:
red:
postgres:
image: postgres:9.6
restart: always
environment:
POSTGRES_PASSWORD: ${DATABASE_PASS}
POSTGRES_USER: '${DATABASE_NAME}'
POSTGRES_DB: '${DATABASE_USER}'
volumes:
- ./data/dbdata:/var/lib/postgresql/data
networks:
red:
nginx:
image: nginx:latest
ports:
- "${HTTP_PORT}:8000"
- "${HTTPS_PORT}:8443"
volumes:
- ./config/nginx_src:/src
- ./config/nginx:/etc/nginx/conf.d
- ./appdata/static:/static
- ./data/certs:/etc/nginx/certs
depends_on:
- "python"
networks:
red:
networks:
red: