forked from macagua/mixpost_docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (74 loc) · 2.31 KB
/
docker-compose.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
70
71
72
73
74
75
76
77
78
79
version: '3.9'
services:
mixpost:
image: "${MIXPOST_RELEASE_NAME}:${MIXPOST_RELEASE_VERSION}"
container_name: mixpost-lite
environment:
APP_NAME: ${MIXPOST_APP_NAME}
APP_URL: ${MIXPOST_APP_URL}
APP_KEY: ${MIXPOST_APP_KEY}
APP_ENV: ${MIXPOST_APP_ENV}
APP_DEBUG: ${MIXPOST_APP_DEBUG}
DB_HOST: ${MIXPOST_DB_HOST}
DB_DATABASE: ${MIXPOST_DB_DATABASE}
DB_USERNAME: ${MIXPOST_DB_USERNAME}
DB_PASSWORD: ${MIXPOST_DB_PASSWORD}
REDIS_HOST: ${MIXPOST_REDIS_HOST}
REDIS_PASSWORD: ${MIXPOST_REDIS_PASSWORD}
ports:
- ${MIXPOST_APP_PORT}:80
volumes:
- mixpost-storage:/var/www/html/storage/app
- mixpost-logs:/var/www/html/storage/logs
depends_on:
- mysql
- redis
networks:
- mixpost_net
restart: unless-stopped
mysql:
image: "${MYSQL_RELEASE_NAME}:${MYSQL_RELEASE_VERSION}"
container_name: mixpost-mysql
ports:
- '${MYSQL_APP_PORT}:3306'
environment:
MYSQL_DATABASE: ${MIXPOST_DB_DATABASE}
MYSQL_USER: ${MIXPOST_DB_USERNAME}
MYSQL_PASSWORD: ${MIXPOST_DB_PASSWORD}
volumes:
- 'mixpost-mysql:/var/lib/mysql'
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-p ${MIXPOST_DB_PASSWORD}"]
retries: 3
timeout: 5s
networks:
- mixpost_net
restart: unless-stopped
redis:
image: "${REDIS_RELEASE_NAME}:${REDIS_RELEASE_VERSION}"
container_name: mixpost-redis
command: redis-server --appendonly yes --replica-read-only no --requirepass "${MIXPOST_REDIS_PASSWORD}"
ports:
- '${REDIS_APP_PORT}:6379'
volumes:
- 'mixpost-redis:/data'
healthcheck:
test: ["CMD", "redis-cli", "ping"]
retries: 3
timeout: 5s
networks:
- mixpost_net
restart: unless-stopped
volumes:
mixpost-mysql:
driver: local
mixpost-redis:
driver: local
mixpost-storage:
driver: local
mixpost-logs:
driver: local
networks:
mixpost_net:
external: true
name: mixpost_net