-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml.example
More file actions
73 lines (68 loc) · 1.74 KB
/
Copy pathdocker-compose.yml.example
File metadata and controls
73 lines (68 loc) · 1.74 KB
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
70
71
72
73
---
services:
secrets:
restart: always
hostname: secrets-prod
container_name: secrets-prod
image: rahonahosting/secrets:latest
labels:
#- "com.centurylinklabs.watchtower.enable=true"
#- "traefik.docker.network=traefik"
#- "traefik.enable=true"
#- "traefik.http.routers.r-secrets.rule=Host(`example.com`)"
#- "traefik.http.routers.r-secrets.entrypoints=https"
#- "traefik.http.routers.r-secrets.tls=true"
env_file: .env
networks:
#- traefik
- default
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
task:
image: rahonahosting/secrets:latest
command: ["php", "/var/www/html/artisan", "schedule:work"]
restart: always
env_file: .env
hostname: secrets-task-prod
labels:
#- "com.centurylinklabs.watchtower.enable=true"
stop_signal: SIGTERM
depends_on:
mariadb:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "healthcheck-schedule"]
start_period: 10s
redis:
restart: always
env_file: .env
image: redis:alpine
command: redis-server /usr/local/etc/redis/redis.conf
volumes:
- ./redis.conf:/usr/local/etc/redis/redis.conf
healthcheck:
test: ["CMD", "redis-cli","ping"]
mariadb:
restart: always
image: 'mariadb:10'
env_file: .env
volumes:
- 'mariadb:/var/lib/mysql'
healthcheck:
test: [ "CMD", "healthcheck.sh", "--connect", "--innodb_initialized" ]
start_period: 1m
start_interval: 10s
interval: 1m
timeout: 5s
retries: 3
volumes:
mariadb:
driver: local
#networks:
# traefik:
# external: true