-
Notifications
You must be signed in to change notification settings - Fork 3
/
docker-compose.yml
66 lines (64 loc) · 1.09 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
version: '3'
services:
app:
build:
context: ./fpm
args:
CHANGE_SOURCE: 'true'
GITHUB_TOKEN: ${GITHUB_TOKEN}
DB_HOST: db
ENABLE_REDIS: ${ENABLE_REDIS}
ports:
- 9000:9000
volumes:
- bs:/app
- bs-storage:/app/storage
networks:
- backend
depends_on:
- db
web:
build:
context: ./nginx
ports:
- ${NGINX_PORT}:80
networks:
- frontend
- backend
volumes:
- bs:/app:ro
depends_on:
- app
db:
image: mariadb:10
restart: always
environment:
MYSQL_USER: blessingskin
MYSQL_PASSWORD: blessingskin
MYSQL_DATABASE: blessingskin
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
ports:
- '3306'
networks:
- backend
volumes:
- db-data:/var/lib/mysql
redis:
image: redis:alpine
ports:
- '6379'
networks:
- backend
networks:
frontend:
driver: bridge
backend:
driver: bridge
internal: true
volumes:
bs:
driver: local
bs-storage:
driver: local
db-data:
driver: local