-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
119 lines (117 loc) · 3.61 KB
/
docker-compose.yml
File metadata and controls
119 lines (117 loc) · 3.61 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
108
109
110
111
112
113
114
115
116
117
118
119
version: "3.7"
services:
app:
build:
args:
user: rave
uid: 1000
context: ./
dockerfile: Dockerfile
image: rave
container_name: rave-app
restart: unless-stopped
working_dir: /var/www/
volumes:
- ./:/var/www
networks:
- rave
db:
image: mysql:8.0
container_name: rave-db
restart: unless-stopped
environment:
MYSQL_DATABASE: ${DB_DATABASE}
MYSQL_ROOT_PASSWORD: ${DB_PASSWORD}
MYSQL_PASSWORD: ${DB_PASSWORD}
MYSQL_USER: ${DB_USERNAME}
SERVICE_TAGS: prod
SERVICE_NAME: mysql
volumes:
- 'rave-db:/var/lib/mysql'
- ./deployment/mysql:/docker-entrypoint-initdb.d
networks:
- rave
nginx:
image: nginx:latest
container_name: rave-nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./:/var/www
- ./deployment/nginx:/etc/nginx/conf.d:ro
- ./deployment/certbot/www/:/var/www/certbot/:ro
- ./deployment/certbot/conf/:/etc/nginx/ssl/:ro
networks:
- rave
certbot:
image: certbot/certbot:latest
volumes:
- ./deployment/certbot/www/:/var/www/certbot/:rw
- ./deployment/certbot/conf/:/etc/letsencrypt/:rw
command: certonly --webroot -w /var/www/certbot --force-renewal --email ${SYSADMIN} -d ${DOMAIN} --agree-tos
redis:
image: 'redis:alpine'
container_name: rave-redis
ports:
- '${FORWARD_REDIS_PORT:-6379}:6379'
volumes:
- 'rave-redis:/data'
networks:
- rave
environment:
REDIS_PASSWORD: ${REDIS_PASSWORD}
command: redis-server --requirepass ${REDIS_PASSWORD}
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
retries: 3
timeout: 5s
minio:
image: 'minio/minio:latest'
container_name: rave-minio
ports:
- '${FORWARD_MINIO_PORT:-9000}:9000'
- '${FORWARD_MINIO_CONSOLE_PORT:-8900}:8900'
#- '9443:433'
environment:
MINIO_ROOT_USER: ${MINIO_USER}
MINIO_ROOT_PASSWORD: ${MINIO_PASSWORD}
volumes:
- 'rave-minio:/data/minio'
#- ./deployment/certbot/conf/live/s3.schleuse.eu/fullchain.pem:/root/.minio/certs/public.crt:ro
#- ./deployment/certbot/conf/live/s3.schleuse.eu/privkey.pem:/root/.minio/certs/private.key:ro
networks:
- rave
command: minio server /data/minio --console-address ":8900"
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
retries: 3
timeout: 5s
#meilisearch:
# image: 'getmeili/meilisearch:latest'
# container_name: rave-meilisearch
# ports:
# - '${FORWARD_MEILISEARCH_PORT:-7700}:7700'
# volumes:
# - 'rave-meilisearch:/meili_data'
# networks:
# - rave
# environment:
# MEILI_MASTER_KEY: "${MEILISEARCH_KEY}"
# healthcheck:
# test: [ "CMD", "wget", "--no-verbose", "--spider", "http://localhost:7700/health" ]
# retries: 3
# timeout: 5s
networks:
rave:
driver: bridge
volumes:
rave-db:
driver: local
rave-redis:
driver: local
#rave-meilisearch:
# driver: local
rave-minio:
driver: local