-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
60 lines (54 loc) · 1.13 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
version: '2'
services:
db:
image: postgres:12.0-alpine
restart: always
volumes:
- postgres_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=${DB_NAME}
- POSTGRES_USER=${DB_USER}
- POSTGRES_PASSWORD=${DB_PASSWORD}
web:
container_name: web
build: ./web
command: gunicorn barrakes.wsgi:application --bind 0.0.0.0:8000 --workers=3
restart: always
env_file:
- .env
expose:
- 8000
volumes:
- staticfiles:/opt/app/barrakes/staticfiles
depends_on:
- db
nginx:
build: ./nginx
restart: always
ports:
- 666:80
volumes:
- staticfiles:/opt/app/barrakes/staticfiles
depends_on:
- web
duckdns:
image: linuxserver/duckdns
container_name: duckdns
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Madrid
- SUBDOMAINS=${DUCKDNS_SUBDOMAIN}
- TOKEN=${DUCKDNS_TOKEN}
restart: unless-stopped
volumes:
postgres_data:
staticfiles:
networks:
default:
driver: bridge
ipam:
driver: default
config:
- subnet: 10.0.1.0/24
gateway: 10.0.1.1