forked from RailwayStations/RSWebsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (44 loc) · 1009 Bytes
/
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
47
---
version: "2.1"
services:
rswebsite:
container_name: rswebsite
# depends_on:
# - rsapi
image: railwaystations/rs-website:latest
restart: unless-stopped
environment:
- API_URL=http://localhost:8080/
ports:
- "8000:80"
rsapi:
image: railwaystations/rsapi:latest
container_name: rsapi
volumes:
- ./rsapi:/var/rsapi
restart: unless-stopped
environment:
- SPRING_PROFILES_ACTIVE=test
depends_on:
- mariadb
ports:
- "8080:8080"
- "8081:8081"
labels:
org.label-schema.group: "rsapi"
mariadb:
image: mariadb:10.8
container_name: mariadb
restart: unless-stopped
environment:
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=rsapi
- MYSQL_USER=rsapi
- MYSQL_PASSWORD=rsapi
command:
- "--character-set-server=utf8mb4"
- "--collation-server=utf8mb4_unicode_ci"
ports:
- "3306:3306"
labels:
org.label-schema.group: "rsapi"