-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
46 lines (46 loc) · 1.27 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
version: "3.1"
services:
mysql:
container_name: ${MYSQL_CONTAINER_NAME}
image: ${MYSQL_CONTAINER_IMAGE_NAME}
restart: always
env_file:
- .env
environment:
- MYSQL_DATABASES=${MYSQL_DATABASES}
- MYSQL_ROOT_PASSWORD=${MYSQL_ROOT_PASSWORD}
- MYSQL_HOST=${MYSQL_HOST}
- MYSQL_USER=${MYSQL_USER}
- MYSQL_MY_DATABASE=${MYSQL_MY_DATABASE}
ports:
- ${MYSQL_PORT}:3306
volumes:
- ./data_mysql:/var/lib/mysql
command: --default-authentication-plugin=mysql_native_password
mongo:
container_name: ${MONGO_CONTAINER_NAME}
image: ${MONGO_CONTAINER_IMAGE_NAME}
restart: always
env_file:
- .env
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGO_INITDB_ROOT_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGO_INITDB_ROOT_PASSWORD}
volumes:
- ./data_mongo:/data/db
ports:
- ${MONGO_PORT}:27017
postgres:
container_name: ${POSTGRES_CONTAINER_NAME}
image: ${POSTGRES_CONTAINER_IMAGE_NAME}
restart: always
env_file:
- .env
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_DB=${POSTGRES_DB}
ports:
- ${POSTGRES_PORT}:5432
volumes:
- ./data_postgres:/var/lib/postgresql/data