-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
46 lines (43 loc) · 1.03 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
# https://docs.docker.com/compose/compose-file/
version: '3'
services:
shift_pro_app_nginx:
restart: always
build:
context: ./client
ports:
- "3000:80"
depends_on:
- shift_pro_server
shift_pro_mysql:
container_name: shiftpro_mysql
image: mysql:5.7
command: --default-authentication-plugin=mysql_native_password
environment:
MYSQL_DATABASE: shiftproscheduler
MYSQL_ROOT_PASSWORD: root
MYSQL_USER: admin
MYSQL_PASSWORD: admin
ports:
- "3306:3306"
volumes:
- ./server/src/main/resources/db/mysql/init.sql:/docker-entrypoint-initdb.d/init.sql
restart: unless-stopped
shift_pro_server:
restart: unless-stopped
build:
context: ./server
volumes:
- ./server:/server
- ~/.m2:/root/.m2
environment:
SPRING_PROFILES_ACTIVE: production
ports:
- "8080:8080"
depends_on:
- shift_pro_mysql
- shift_pro_email
shift_pro_email:
container_name: shiftpro_email
image: bytemark/smtp
restart: unless-stopped