-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose-agent.yml
69 lines (62 loc) · 1.35 KB
/
docker-compose-agent.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
57
58
59
60
61
62
63
64
65
66
67
68
69
version: "3.2"
services:
backend:
build:
context: "backend"
args:
TZ: ${TZ}
restart: always
volumes:
- ./backend/:/src
- ./alertmanager:/alertmanager
- ./frontend/labyrinth/public:/public
networks:
- labyrinth
environment:
REDIS_HOST: redis
PRODUCTION: 1
frontend:
image: nginx:latest
restart: always
depends_on:
- lego
networks:
- labyrinth
user: ${CURRENT_UID}
command: /entrypoint.sh
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx:/nginx
- ./frontend/labyrinth/dist/:/dist:ro
- ./nginx/entrypoint.sh:/entrypoint.sh
- ./nginx/watch.sh:/watch.sh
environment:
COMPOSE_CONVERT_WINDOWS_PATHS: 1
healthcheck:
test: curl -k -f https://localhost/insecure || service nginx restart
interval: 20s
timeout: 10s
retries: 3
ports:
- "443:443"
lego:
build: nginx
restart: always
volumes:
- ./nginx:/nginx
- ./nginx/lego.sh:/lego.sh
env_file:
- nginx/.env
# Redis
redis:
image: bitnami/redis:latest
restart: always
environment:
ALLOW_EMPTY_PASSWORD: "yes"
networks:
- labyrinth
# volumes:
# - ./redis_data:/bitnami/redis/data
networks:
labyrinth:
external: true