-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (70 loc) · 1.63 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
version: "3"
services:
cloudflare:
image: "cloudflare/cloudflared:latest"
container_name: "cloudflare"
volumes: ["./settings/cloudflare/prod:/home/nonroot/.cloudflared"]
command: tunnel run
postgres:
image: postgres
container_name: "postgres"
restart: always
# set shared memory limit when using docker-compose
# shm_size: 128mb
# or set shared memory limit when deploy via swarm stack
# volumes:
# - type: tmpfs
# target: /dev/shm
# tmpfs:
# size: 134217728 # 128*2^20 bytes = 128Mb
env_file:
- ./settings/env/postgres.env
volumes:
- ./postgres:/var/lib/postgresql/data
ports:
- 5432:5432
pgadmin:
image: dpage/pgadmin4:6.11
container_name: "pgadmin"
env_file:
- ./settings/env/pgadmin.env
volumes:
- ./pgadmin:/var/lib/pgadmin
depends_on:
- postgres
ports:
- 8080:80
# DBの環境
mysql:
image: mysql:8.0
container_name: "mysql"
restart: always
env_file:
- ./settings/env/mysql.env
volumes:
- ./mysql:/var/lib/mysql
ports:
- 3306:3306
# DBのGUI機能の環境
phpmyadmin:
image: phpmyadmin/phpmyadmin
container_name: "phpmyadmin"
env_file:
- ./settings/env/phpmyadmin.env
volumes:
- ./phpmyadmin/sessions:/sessions
depends_on:
- mysql
ports:
- 3307:80
minio:
image: minio/minio:latest
container_name: "minio"
ports:
- "9000:9000"
- "9001:9001"
volumes:
- ./minio/data:/data
command: "server /data --console-address :9001"
env_file:
- ./settings/env/minio.env