-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
40 lines (40 loc) · 1.08 KB
/
docker-compose.yml
File metadata and controls
40 lines (40 loc) · 1.08 KB
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
version: '3'
services:
frontend:
build:
context: https://github.com/Rust-CMS/dashboard-cms.git#main
dockerfile: Dockerfile
ports:
- "8080:8080"
depends_on:
- backend
restart: always
backend:
image: ghcr.io/rust-cms/radical:latest
ports:
- "9090:80"
environment:
- APP_MYSQL_USERNAME=root
- APP_MYSQL_PASSWORD=password
- APP_MYSQL_URL=db
- APP_MYSQL_DATABASE=rustcms
- APP_MYSQL_PORT=3306
- APP_BIND_ADDRESS=0.0.0.0
- APP_BIND_PORT=80
- APP_MAX_REQ=100
- APP_JWT_KEY=B669681336E3D84E5BE598A92C524
command: ["./wait-for-it.sh", "db:3306", "-t", "0", "--", "radical"]
restart: always
# This section here is optional if you have your own database. We use this for the time being.
db:
container_name: radical-db
image: mariadb:latest
# Explicit ports are for debugging. Can be removed.
ports:
- "9095:3306"
environment:
- MARIADB_ROOT_PASSWORD=password
- MARIADB_DATABASE=rustcms
restart: always
volumes:
- /var/lib/mysql