Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
108 lines (99 loc) · 2.47 KB
/
Copy pathdocker-compose.yml
File metadata and controls
108 lines (99 loc) · 2.47 KB
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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
version: "3.3"
networks:
pdc:
driver: overlay
services:
traefik:
image: "traefik:v2.2"
hostname: traefik
command:
#- "--log.level=DEBUG"
- "--api.insecure=true"
- "--providers.docker=true"
- "--providers.docker.exposedbydefault=false"
- "--entrypoints.web.address=:80"
- "--providers.docker.swarmmode=true"
ports:
- "80:80"
- "8080:8080"
volumes:
- "/var/run/docker.sock:/var/run/docker.sock:ro"
deploy:
labels:
- "pdc_backend=true"
networks:
- pdc
authorizator:
image: "pdc/authorizator"
hostname: authorizator
deploy:
labels:
- "pdc_backend=true"
- "traefik.enable=true"
- "traefik.http.routers.authorizator.entrypoints=web"
- "traefik.http.services.authorizator.loadbalancer.server.port=80"
- "traefik.http.routers.authorizator.rule=PathPrefix(`/authorizator`)"
environment:
SERVICE_PATH: authorizator/
HOST: "192.168.1.36"
SECRET_KEY: "&=3^m(bgkt708(&5$gjx_#rnz%_e+zzenmh&#jc!7k=9&a^(+z"
DB_PASSWORD: "pdc_dev"
DB_USER: "root"
SYSTEM_API_KEY: "APIKEY"
SERVICE_NAME: "Authorizator"
volumes:
- ./authorizator:/authorizator
- ./pdc_dev/pdc:/usr/local/lib/python3.9/site-packages/pdc
networks:
- pdc
system:
image: "pdc/system"
hostname: system
deploy:
labels:
- "pdc_backend=true"
- "traefik.enable=true"
- "traefik.http.routers.system.entrypoints=web"
- "traefik.http.services.system.loadbalancer.server.port=80"
- "traefik.http.routers.system.rule=PathPrefix(`/system`)"
environment:
SERVICE_PATH: system/
HOST: "192.168.1.36"
SECRET_KEY: "&=3^m(bgkt708(&5$gjx_#rnz%_e+zzenmh&#jc!7k=9&a^(+z"
DB_PASSWORD: "pdc_dev"
DB_USER: "root"
DB_NAME: "system"
SYSTEM_API_KEY: "APIKEY"
SERVICE_NAME: "system"
volumes:
- ./system:/service
- ./pdc_dev/pdc:/usr/local/lib/python3.9/site-packages/pdc
- "/var/run/docker.sock:/var/run/docker.sock:ro"
networks:
- pdc
mariadb:
image: mariadb
hostname: mariadb
deploy:
labels:
- "pdc_backend=true"
volumes:
- ./db:/var/lib/mysql
environment:
MYSQL_ROOT_PASSWORD: pdc_dev
labels:
- "pdc_backend=true"
networks:
- pdc
# for visually manage db
adminer:
image: adminer
ports:
- 8081:8080
deploy:
labels:
- "pdc_backend=true"
labels:
- "pdc_backend=true"
networks:
- pdc