-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
70 lines (63 loc) · 1.68 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
version: '2'
services:
web:
build: .
networks:
- web
- default
container_name: "tufingadmin_nginx_uwsgi_django"
volumes:
- ./app:/home/docker/code/app/
- ./static:/home/docker/volatile/static
- ./media:/home/docker/persistent/media
- ./logging:/home/docker/persistent/logging
labels:
- 'traefik.backend=nginx'
- 'traefik.port=80'
- "traefik.docker.network=web"
- 'traefik.enable=true'
- 'traefik.default.protocol=http'
- 'traefik.frontend.rule=Host:tuffingadmin.localhost'
db:
image: mdillon/postgis:9.6-alpine
environment:
POSTGRES_PASSWORD: django
POSTGRES_DB: django
POSTGRES_USER: django
ports:
- '5432:5432'
volumes:
- ./database/initdb:/docker-entrypoint-initdb.d # Place init file(s) here.
- ./database/pgdata:/var/lib/postgresql/data # I want to manage volumes manually.
labels:
- "traefik.enable=false"
traefik:
image: traefik
restart: always
command: -c /dev/null --web --docker --logLevel=ERROR
ports:
- '80:80'
- '8080:8080'
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
# - ./traefik.toml:/traefik.toml
# - ./acme.json:/acme.json
container_name: traefik
portainer:
image: portainer/portainer
command: --no-auth -H unix:///var/run/docker.sock
networks:
- web
- default
volumes:
- /var/run/docker.sock:/var/run/docker.sock
labels:
- 'traefik.backend=portainer'
- 'traefik.port=9000'
- 'traefik.frontend.rule=Host:portainer.localhost'
- "traefik.docker.network=web"
networks:
web:
external: true