-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.development.yml
More file actions
68 lines (61 loc) · 1.41 KB
/
docker-compose.development.yml
File metadata and controls
68 lines (61 loc) · 1.41 KB
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
version: '3.6'
services:
project-application:
container_name: project-application
build:
dockerfile: Dockerfile.local
context: ./
env_file:
- .env
volumes:
- static_volume:/code/ProjectApplication/staticfiles
- ./ProjectApplication:/code/ProjectApplication
- ./.git:/code/ProjectApplication/.git
secrets:
- project_application_mysql.conf
ports:
- "8000:8000"
links:
- database
- minio
database:
container_name: db-server
image: mariadb:10.5
environment:
- MYSQL_USER=spi
- MYSQL_PASSWORD=spi
- MYSQL_ROOT_PASSWORD=root
volumes:
- database:/var/lib/mysql
- ./db_server/mysql-dump:/docker-entrypoint-initdb.d
ports:
- "3306:3306"
minio:
image: minio/minio
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio:/data
environment:
MINIO_ROOT_USER: minio
MINIO_ROOT_PASSWORD: minio123
command: server /data --console-address ":9001"
createbuckets:
image: minio/mc
depends_on:
- minio
entrypoint: >
/bin/sh -c "
mc alias set myminio http://minio:9000 minio minio123;
mc mb myminio/projects-test;
mc policy set public myminio/projects-test;
exit 0;
"
volumes:
static_volume: {}
database:
minio:
secrets:
project_application_mysql.conf:
file: ./project_application_mysql.conf