-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-dev.yml
70 lines (62 loc) · 1.66 KB
/
docker-compose-dev.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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: "3.7"
services:
mysql:
image: mysql:8.0.26
container_name: frogsoft-cms-mysql
volumes:
- "./mysql/db_data:/var/lib/mysql"
- "./mysql/conf.d:/etc/mysql/conf.d"
restart: unless-stopped
environment:
MYSQL_ROOT_PASSWORD: ${MYSQL_ROOT_PASSWORD}
MYSQL_DATABASE: ${MYSQL_DATABASE}
MYSQL_USER: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
networks:
frogsoft-cms-network:
aliases:
- mysql
frogsoft-cms-backend:
depends_on:
- mysql
build: ./backend
container_name: frogsoft-cms-backend
restart: unless-stopped
command:
- "./wait-for-it.sh"
- "mysql:3306"
- "--timeout=120"
- "--"
- "java"
- "org.springframework.boot.loader.JarLauncher"
environment:
MYSQL_URL: mysql
MYSQL_DB: ${MYSQL_DATABASE}
MYSQL_USERNAME: ${MYSQL_USER}
MYSQL_PASSWORD: ${MYSQL_PASSWORD}
PORT: ${BACKEND_PORT}
JWT_SECRET: ${JWT_SECRET}
JWT_EXPIRATION_DELAY: ${JWT_EXPIRATION_DELAY}
MAIL_HOST: ${MAIL_HOST}
MAIL_USERNAME: ${MAIL_USERNAME}
MAIL_PASSWORD: ${MAIL_PASSWORD}
ports:
- "${BACKEND_PORT}:${BACKEND_PORT}"
networks:
- frogsoft-cms-network
frogsoft-cms-user:
build: ./frontend-user
container_name: frogsoft-cms-user
restart: unless-stopped
ports:
- "${FRONTEND_USER_PORT}:80"
frogsoft-cms-admin:
build: ./frontend-admin
container_name: frogsoft-cms-admin
restart: unless-stopped
environment:
VITE_BACKEND_URL: http://localhost:${BACKEND_PORT}
ports:
- "${FRONTEND_ADMIN_PORT}:80"
networks:
frogsoft-cms-network: