-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
69 lines (62 loc) · 1.5 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
version: "3.7"
services:
storage-webserver:
image: nginx:mainline-alpine
container_name: storage-webserver
restart: unless-stopped
depends_on:
- storage-app
networks:
- storage-net
ports:
- 8080:80
volumes:
- ./:/var/www/html
- ./nginx.sample.conf:/etc/nginx/nginx.conf
storage-app:
build:
context: .
dockerfile: Dockerfile
container_name: storage-app
restart: unless-stopped
user: www-data
networks:
- storage-net
volumes:
- ./:/var/www/html
storage-mysql:
image: mysql:latest
container_name: storage-mysql
volumes:
- db_data:/var/lib/mysql
restart: unless-stopped
ports:
- 3306:3306
expose:
- 3306
networks:
- storage-net
environment:
MYSQL_ROOT_PASSWORD: rootpass
MYSQL_DATABASE: storage
MYSQL_USER: storage
MYSQL_PASSWORD: storage
minio:
image: minio/minio:latest
container_name: storage-cdn
ports:
- 9999:9000
volumes:
- cdn_data:/data
networks:
- storage-net
environment:
MINIO_ACCESS_KEY: minioadmin
MINIO_SECRET_KEY: minioadmin
command: server /data
volumes:
db_data:
cdn_data:
networks:
storage-net:
driver: bridge