-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathjoin-stack.yml
97 lines (91 loc) · 3.47 KB
/
join-stack.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
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
version: '3'
services:
database:
image: postgres
ports:
- "5432:5432"
environment:
- POSTGRES_DB=gestionale
- POSTGRES_USER=admin
- POSTGRES_PASSWORD=12345678
frontend:
image: registry.gitlab.com/lascuolaopensource/ods-frontend
networks:
- default
- traefik-public
depends_on:
- backend
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
labels:
- "traefik.enable=true"
- "traefik.http.routers.publicfrontend.rule=Host(`join.odsmatera.it`)"
- "traefik.http.routers.publicfrontend.entrypoints=websecure"
- "traefik.http.routers.publicfrontend.tls.certresolver=letsencryptresolver"
- "traefik.http.services.publicfrontend.loadbalancer.server.port=80"
admin-frontend:
image: registry.gitlab.com/lascuolaopensource/ods-admin-frontend
networks:
- default
- traefik-public
depends_on:
- backend
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
labels:
- "traefik.enable=true"
- "traefik.http.routers.adminfrontend.rule=Host(`admin.odsmatera.it`)"
- "traefik.http.routers.adminfrontend.entrypoints=websecure"
- "traefik.http.routers.adminfrontend.tls.certresolver=letsencryptresolver"
- "traefik.http.services.adminfrontend.loadbalancer.server.port=80"
backend:
image: registry.gitlab.com/lascuolaopensource/ods-backend
command: bash -c "sbt stage && sbt seedDataProd && target/universal/stage/bin/sos -Dconfig.resource=env/prod.conf -Dhttp.port=9000 -Dlogger.resource=logback.xml -Dplay.evolutions.db.default.autoApply=true -Dplay.http.secret.key='QCY?tAnfk?aZ?iwrNwnxIlR6CTf:G3gf:90Latabg@5241ABR5W:1uDFN];Ik@n'"
networks:
- default
- traefik-public
depends_on:
- database
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
labels:
- "traefik.enable=true"
- "traefik.http.routers.backend.rule=Host(`login.odsmatera.it`)"
- "traefik.http.routers.backend.entrypoints=websecure"
- "traefik.http.routers.backend.tls.certresolver=letsencryptresolver"
- "traefik.http.services.backend.loadbalancer.server.port=9000"
pgadmin:
image: dpage/pgadmin4
networks:
- default
- traefik-public
volumes:
- pgadmin:/root/.pgadmin
environment:
- PGADMIN_DEFAULT_PASSWORD=12341234
deploy:
mode: replicated
replicas: 1
placement:
constraints: [node.role == manager]
labels:
- "traefik.enable=true"
- "traefik.http.routers.pgadmin.rule=Host(`pgadmin.odsmatera.it`)"
- "traefik.http.routers.pgadmin.entrypoints=websecure"
- "traefik.http.routers.pgadmin.tls.certresolver=letsencryptresolver"
- "traefik.http.services.pgadmin.loadbalancer.server.port=80"
networks:
traefik-public:
external: true
volumes:
pgadmin: