-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
47 lines (46 loc) · 1.16 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
version: '3'
networks:
internal_network:
name: ${INTERNAL_NETWORK_NAME}
external:
name: ${EXTERNAL_NETWORK_NAME}
volumes:
mariadb-data:
minio-data-1:
services:
music-app-backend:
build: ./_docker/backend/${ENVIRONMENT}
hostname: local-backend
volumes:
- ./backend:/var/www/html
ports:
- ${EXPOSED_BACKEND_PORT}:${INTERNAL_BACKEND_PORT}
networks:
- internal_network
env_file:
- ./backend/.env
music-app-db:
build: ./_docker/db/${ENVIRONMENT}
hostname: local-db
volumes:
- 'mariadb-data:/var/lib/mysql'
ports:
- ${EXPOSED_DB_PORT}:${INTERNAL_DB_PORT}
networks:
- internal_network
env_file:
- ./db/.env
music-app-minio:
image: quay.io/minio/minio:RELEASE.2022-02-18T01-50-10Z
command: minio server /mnt/data1 --console-address ":9001"
expose:
- ${INTERNAL_MINIO_S3_PORT}
- ${INTERNAL_MINIO_CONSOLE_PORT}
ports:
- ${EXPOSED_MINIO_S3_PORT}:${INTERNAL_MINIO_S3_PORT}
- ${EXPOSED_MINIO_CONSOLE_PORT}:${INTERNAL_MINIO_CONSOLE_PORT}
env_file:
- ./minio/.env
volumes:
- minio-data-1:/data1
restart: always