-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
65 lines (60 loc) · 1.32 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
version: "3.9"
services:
postgres:
container_name: mc_manager_db
image: postgres
volumes:
- database:/var/lib/postgresql/data
networks:
- default
environment:
- POSTGRES_DB=mcmanager
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
django: &django
container_name: mc_manager
build:
context: .
dockerfile: Dockerfile
deploy:
restart_policy:
condition: any
resources:
limits:
cpus: "2"
memory: 6G
reservations:
cpus: ".1"
memory: 256M
depends_on:
- postgres
networks:
- default
- traefik
volumes:
- data:/data
ports:
- "25565-25600:25565-25600"
labels:
traefik.enable: true
traefik.docker.network: traefik
traefik.http.routers.mc_manager.rule: Host(`minecraft.marchand.cloud`)
traefik.http.routers.mc_manager.entrypoints: https
traefik.http.routers.mc_manager.tls: true
traefik.http.routers.mc_manager.tls.certresolver: letsencrypt
django_migration:
<<: *django
container_name: mc_manager_migration
deploy: {}
command: python manage.py migrate
volumes: []
ports: []
labels: {}
networks:
default:
traefik:
external: true
name: traefik
volumes:
data:
database: