-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.stage.yml
More file actions
executable file
·107 lines (100 loc) · 2.24 KB
/
docker-compose.stage.yml
File metadata and controls
executable file
·107 lines (100 loc) · 2.24 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
services:
web:
build: ./docker/web
restart: unless-stopped
volumes_from:
- nextcloud
depends_on:
nextcloud:
condition: service_started
labels:
caddy: ${APP_URL}
caddy.reverse_proxy: '{{upstreams 80}}'
networks:
- frontend
- proxy
nextcloud:
build:
context: ./docker/nextcloud
dockerfile: Dockerfile
args:
NC_VERSION: ${NC_VERSION:-32}
target: ${ENV:-development}
restart: unless-stopped
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
env_file:
- .env
environment:
POSTGRES_HOST: postgres:5432
REDIS_HOST: redis
networks:
- frontend
- backend
extra_hosts:
- host.docker.internal:host-gateway
volumes:
- nc-app:/var/www/html
- ./:/var/www/html/custom_apps/files_external_ethswarm
cron:
image: nextcloud:${NC_VERSION:-32}-fpm-alpine
restart: always
volumes:
- nc-app:/var/www/html
entrypoint: /cron.sh
environment:
POSTGRES_HOST: postgres:5432
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
networks:
- backend
depends_on:
nextcloud:
condition: service_started
postgres:
condition: service_healthy
redis:
condition: service_healthy
redis:
image: redis:alpine
restart: unless-stopped
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
start_period: 3s
timeout: 5s
interval: 30s
networks:
- backend
postgres:
image: postgres:18-alpine
restart: unless-stopped
env_file:
- .env
volumes:
- nc-db:/var/lib/postgresql/data
healthcheck:
test: [ "CMD", "pg_isready", "-q", "-d", "${POSTGRES_DB}", "-U", "${POSTGRES_USER}" ]
start_period: 3s
timeout: 5s
interval: 30s
networks:
- backend
volumes:
nc-app:
nc-db:
networks:
frontend:
ipam:
config:
- subnet: 172.${NC_VERSION:-32}.10.0/24
gateway: 172.${NC_VERSION:-32}.10.1
backend:
ipam:
config:
- subnet: 172.${NC_VERSION:-32}.20.0/24
gateway: 172.${NC_VERSION:-32}.20.1
proxy:
name: hejbit-network
external: true