-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.prod.yaml
100 lines (95 loc) · 2.1 KB
/
docker-compose.prod.yaml
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
version: '3'
services:
wiki:
image: dunglas/frankenphp:latest
build:
context: .
dockerfile: Dockerfile
ports:
- '80:80'
- "443:443"
- "2019:2019"
- '${VITE_PORT}:${VITE_PORT}'
environment:
WWWUSER: '${WWWUSER}'
IGNITION_LOCAL_SITES_PATH: '${PWD}'
PHP_IDE_CONFIG: serverName=orca-test
CADDY_GLOBAL_OPTIONS: "debug"
SERVER_NAME: '192.168.178.110, localhost, orca-test'
volumes:
- '.:/app'
# - './Caddyfile:/etc/caddy/Caddyfile' # Mount the Caddyfile
networks:
- wiki_network
depends_on:
- mysql
- redis
- meilisearch
mysql:
image: 'mysql/mysql-server:8.0'
expose:
- '3306'
environment:
MYSQL_ROOT_PASSWORD: '${DB_PASSWORD}'
MYSQL_ROOT_HOST: '%'
MYSQL_DATABASE: '${DB_DATABASE}'
MYSQL_USER: '${DB_USERNAME}'
MYSQL_PASSWORD: '${DB_PASSWORD}'
MYSQL_ALLOW_EMPTY_PASSWORD: 1
volumes:
- 'wiki-mysql:/var/lib/mysql'
- './vendor/laravel/sail/database/mysql/create-testing-database.sh:/docker-entrypoint-initdb.d/10-create-testing-database.sh'
networks:
- wiki_network
healthcheck:
test:
- CMD
- mysqladmin
- ping
- '-p${DB_PASSWORD}'
retries: 3
timeout: 5s
redis:
image: 'redis:alpine'
expose:
- '6379'
volumes:
- 'wiki-redis:/data'
networks:
- wiki_network
healthcheck:
test:
- CMD
- redis-cli
- ping
retries: 3
timeout: 5s
meilisearch:
image: 'getmeili/meilisearch:latest'
expose:
- '7700'
environment:
MEILI_NO_ANALYTICS: '${MEILISEARCH_NO_ANALYTICS}'
volumes:
- 'wiki-meilisearch:/meili_data'
networks:
- wiki_network
healthcheck:
test:
- CMD
- wget
- '--no-verbose'
- '--spider'
- 'http://127.0.0.1:7700/health'
retries: 3
timeout: 5s
networks:
wiki_network:
driver: bridge
volumes:
wiki-meilisearch:
driver: local
wiki-redis:
driver: local
wiki-mysql:
driver: local