-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
70 lines (66 loc) · 1.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
# For more information: https://laravel.com/docs/cate
version: "3"
services:
fm-webserver:
image: fm-webserver:latest
container_name: fm-webserver
hostname: fm-webserver
build:
context: ./.docker/nginx
dockerfile: Dockerfile
volumes:
- ./public:/var/www/public
ports:
- 8080:80
networks:
- cate
depends_on:
- database
cate-app:
container_name: cate-app
hostname: cate-app
build:
context: .
args:
- user=$USER
volumes:
- .:/var/www
networks:
- cate
depends_on:
- database
database:
image: "mariadb:10.2"
ports:
- "3306:3306"
container_name: "cate-database"
environment:
MYSQL_ROOT_PASSWORD: "root"
MYSQL_DATABASE: "cate_db"
MYSQL_USER: "cate"
MYSQL_PASSWORD: "root"
MYSQL_ALLOW_EMPTY_PASSWORD: "yes"
volumes:
- "catemariadb:/var/lib/mysql"
networks:
- cate
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-proot"]
retries: 3
timeout: 5s
redis:
image: redis:4.0
container_name: cate-redis
env_file: .env
ports:
- "6379:6379"
environment:
- ALLOW_EMPTY_PASSWORD=yes
networks:
- "cate"
networks:
cate:
driver: bridge
volumes:
catemariadb:
driver: local