-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdocker-compose-env.yml
42 lines (39 loc) · 1.04 KB
/
docker-compose-env.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
version: "3.7"
volumes:
redis:
networks:
default:
traefik:
external: true
name: ${TRAEFIK_NETWORK}
services:
redis:
image: redis
networks:
- default
volumes:
- redis:/var/lib/redis
civicsense_students_be:
image: ${REGISTRY}/${IMAGETAG}:${GO_REVISION}
env_file: env_vars/${GO_STAGE_NAME}.env
networks:
- traefik
- default
deploy:
replicas: ${NUMBER_REPLICAS}
update_config:
parallelism: 1
delay: 30s
restart_policy:
condition: ${SERVICE_RESTART_CONDITION}
delay: 10s
labels:
- traefik.frontend.rule=${TRAEFIK_FRONTEND_HOST}
- traefik.enable=true
- traefik.port=${TRAEFIK_PORT}
- traefik.docker.network=${TRAEFIK_NETWORK}
# Traefik service that listens to HTTP
#- traefik.redirectorservice.frontend.entryPoints=http
#- traefik.redirectorservice.frontend.redirect.entryPoint=https
# Traefik service that listens to HTTPS
#- traefik.webservice.frontend.entryPoints=https