-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose-prod.yaml
59 lines (58 loc) · 1.8 KB
/
docker-compose-prod.yaml
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
version: '3'
services:
frontend:
image: ghcr.io/syp-ahif-2023-24-25/solardoc-frontend:$VERSION
ports: !override
- "8081:80"
volumes:
- ./solardoc/frontend/nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf
networks:
- solardocnet
labels:
- "traefik.enable=true"
- "traefik.http.routers.frontend.rule=Host(`$DOMAIN`)"
- "traefik.http.routers.frontend.entrypoints=websecure"
- "traefik.http.routers.frontend.tls.certresolver=solardocresolver"
rest-api:
image: ghcr.io/syp-ahif-2023-24-25/solardoc-rest-api:$VERSION
build: !reset null
ports: !override
- "3000:3000"
networks:
- solardocnet
labels:
- "traefik.enable=true"
- "traefik.http.routers.rest-api.rule=Host(`$DOMAIN`) && PathPrefix(`/api`)"
- "traefik.http.routers.rest-api.entrypoints=websecure"
- "traefik.http.routers.rest-api.tls.certresolver=solardocresolver"
redis-db:
image: ghcr.io/syp-ahif-2023-24-25/solardoc-redis-db:$VERSION
build: !reset null
networks:
- solardocnet
phoenix-server:
image: ghcr.io/syp-ahif-2023-24-25/solardoc-phoenix-server:$VERSION
build: !reset null
networks:
- solardocnet
environment:
PHX_HOST: $DOMAIN
labels:
- "traefik.enable=true"
- "traefik.http.routers.phoenix-server.rule=Host(`$DOMAIN`) && PathPrefix(`/phx`)"
- "traefik.http.routers.phoenix-server.entrypoints=websecure"
- "traefik.http.routers.phoenix-server.tls.certresolver=solardocresolver"
postgresql-db:
image: ghcr.io/syp-ahif-2023-24-25/solardoc-postgresql-db:$VERSION
build: !reset null
networks:
- solardocnet
postgres-adminer:
ports: !override
- "8082:8080"
networks:
- solardocnet
networks:
solardocnet:
external: true
name: solardocnet