-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
42 lines (39 loc) · 1.37 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
version: "3.7"
# Will use the hostname when talking between services on the same network
services:
sennet-auth:
hostname: sennet-auth
container_name: sennet-auth
# Avoid accidentally creating zombie processes
init: true
# Specifying a restart policy to avoid downtime
restart: always
environment:
# UID and GID 1001 to match the hive user by default
- HOST_GID=${HOST_GID:-1002}
- HOST_UID=${HOST_UID:-1002}
# Map host machine port 80, 443, and 8443 to container ports
# Only root can listen on ports below 1024, we use higher-numbered ports
# since nginx is running under non-root user codcc
ports:
- "80:8080"
- "443:4430"
# 8443 is used by ingest-api running on another machine
- "8443:8443"
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8080"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- sennet_docker_network
volumes:
# Make the uwsgi/nginx log files generated on container available through from host
- "./sennet-auth/log:/usr/src/app/log"
# favicon.ico and portal/ingest UI maintenance page
- "./nginx/html:/usr/share/nginx/html"
networks:
# This is the network created by gateway to enable communicaton between multiple docker-compose projects
sennet_docker_network:
external: true