-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 852 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 852 Bytes
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
services:
postgres:
image: postgres:latest
container_name: postgres-container
restart: on-failure
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: password
POSTGRES_DB: user_service_db
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- microservice-network
ports:
- "5432:5432"
mysql:
image: mysql:latest
container_name: mysql-container
restart: on-failure
environment:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: auth-service
MYSQL_USER: mysql
MYSQL_PASSWORD: password
volumes:
- mysql_data:/var/lib/mysql
networks:
- microservice-network
ports:
- "3306:3306"
volumes:
postgres_data:
driver: local
mysql_data:
driver: local
networks:
microservice-network:
driver: bridge