forked from slabiak/AppointmentScheduler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (30 loc) · 749 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (30 loc) · 749 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
version: '3.7'
services:
backend:
image: slabiak/appointmentscheduler:0.0.1-SNAPSHOT
ports:
- "8080:8080"
restart: always
depends_on:
- appointmentscheduler_db
networks:
- appointmentscheduler_network
appointmentscheduler_db:
image: mysql:5.7
ports:
- "3306:3306"
restart: always
environment:
MYSQL_DATABASE: appointmentscheduler
MYSQL_USER: user
MYSQL_PASSWORD: password
MYSQL_ROOT_PASSWORD: root_pass
volumes:
- appointmentscheduler_volume:/var/lib/mysql
- ./src/main/resources:/docker-entrypoint-initdb.d
networks:
- appointmentscheduler_network
volumes:
appointmentscheduler_volume:
networks:
appointmentscheduler_network: