-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yml
56 lines (52 loc) · 1.62 KB
/
docker-compose.prod.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
version: '3.2'
services:
web:
image: wugge/battery-price-monitor-frontend:latest
restart: "unless-stopped"
expose:
- 3000
labels:
- "traefik.enable=true"
- "traefik.http.routers.bpm-frontend.rule=Host(`bpm.wug.ge`)"
- "traefik.http.services.bpm-frontend.loadbalancer.server.port=3000"
- "traefik.http.routers.bpm-frontend.tls=true"
- "traefik.http.routers.bpm-frontend.entrypoints=websecure"
api:
image: wugge/battery-price-monitor-api:latest
container_name: wugge-api
restart: "unless-stopped"
expose:
- 3001
environment:
DB_HOST: ${DB_HOST}
DB_NAME: ${DB_NAME}
DB_USER: ${DB_USER}
DB_PASSWORD: ${DB_PASSWORD}
EXPRESS_PORT: 3001
labels:
- "traefik.enable=true"
- "traefik.http.routers.bpm-api.rule=Host(`bpm.wug.ge`) && PathPrefix(`/api`)"
- "traefik.http.services.bpm-api.loadbalancer.server.port=3001"
- "traefik.http.routers.bpm-api.middlewares=bpm-api"
- "traefik.http.middlewares.bpm-api.replacepathregex.regex=^/api/(.*)"
- "traefik.http.middlewares.bpm-api.replacepathregex.replacement=/$$1"
- "traefik.http.routers.bpm-api.tls=true"
- "traefik.http.routers.bpm-api.entrypoints=websecure"
bpm-db:
image: mariadb:latest
ports:
- ${PUBLIC_DB_PORT:-3886}:3306
environment:
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_DATABASE: ${DB_NAME}
MYSQL_USER: ${DB_USER}
MYSQL_PASSWORD: ${DB_PASSWORD}
volumes:
- bpm_db_volume:/var/lib/mysql
volumes:
bpm_db_volume:
networks:
default:
external:
name:
traefik_default