-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
48 lines (45 loc) · 1.21 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
networks:
traefik_savla:
name: ${DOCKER_NETWORK_NAME}
# volumes:
# helldive-helper-data:
# name: helldive-helper-data
services:
helldive-helper:
container_name: helldive-helper
image: ${REGISTRY_URL}/${APP_NAME}/${IMAGE_NAME}:${PACKAGE_VERSION}
build:
context: .
dockerfile: .docker/Dockerfile
target: prod
args:
BASE_URL: ${BASE_URL}
NODE_ENV: ${NODE_ENV}
APP_NAME: ${APP_NAME}
restart: unless-stopped
environment:
- BASE_URL
- NODE_ENV
volumes:
# - "helldive-helper-data:/opt/${APP_NAME}"
- .docker/nginx.conf:/etc/nginx/nginx.conf
- .docker/nginx-default.conf:/etc/nginx/conf.d/default.conf
cpus: 1.5
dns:
- 10.4.5.130
- 1.1.1.2
- 1.0.0.2
mem_reservation: 128m
ports:
- "${DOCKER_INTERNAL_PORT}/tcp"
networks:
- traefik_savla
logging:
driver: loki
options:
loki-url: ${LOKI_URL}
labels: ${LOKI_LABELS}
labels:
- "traefik.http.routers.${APP_NAME}.rule=Host(${APP_URLS_TRAEFIK})"
- "traefik.http.services.${APP_NAME}.loadbalancer.server.port=${DOCKER_INTERNAL_PORT}"
- "traefik.docker.network=${DOCKER_NETWORK_NAME}"