-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
63 lines (61 loc) · 1.55 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
version: "3.9"
services:
datasource:
build:
context: .
dockerfile: DB.Dockerfile
hostname: "${DOCKER_NAME}-datasource"
container_name: "${DOCKER_NAME}-datasource"
restart: always
networks:
- "cfa"
environment:
- "SA_PASSWORD=${DOCKER_SQL_PASSWORD}"
api:
depends_on:
- datasource
build:
context: .
dockerfile: Web.Dockerfile
hostname: ${DOCKER_NAME}-api
container_name: ${DOCKER_NAME}-api
restart: always
networks:
- "cfa"
minio:
image: quay.io/minio/minio
hostname: ${DOCKER_NAME}-minio
container_name: ${DOCKER_NAME}-minio
restart: always
networks:
- "cfa"
volumes:
- /minio/data:/data
environment:
- "MINIO_ROOT_USER=admin"
- "MINIO_ROOT_PASSWORD=adminpassword!"
command: server /data --console-address ":9001"
minioclient:
image: minio/mc
container_name: ${DOCKER_NAME}-minio_client
depends_on:
- minio
entrypoint: >
bash -c
"/usr/bin/mc alias set myminio http://${DOCKER_NAME}-minio admin adminpassword!;
/usr/bin/mc mb myminio/cfa;
/usr/bin/mc policy set public myminio/cfa;
/usr/bin/mc admin user add myminio newuser newuser123;
/usr/bin/mc admin policy set myminio readwrite user=newuser
/usr/bin/mc admin group add newgroup newuser;
exit 0;"
networks:
- "cfa"
networks:
cfa:
name: cfa
ipam:
driver: default
config:
- subnet: 172.21.1.0/24
gateway: 172.21.1.1