-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
55 lines (50 loc) · 1.2 KB
/
docker-compose.yml
File metadata and controls
55 lines (50 loc) · 1.2 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
## Builds Database container and ASP.NET Core container for development environment
## Need to add a ROS container potentially
services:
mariadb-prod:
image: mariadb:latest
container_name: bloom-mariadb
restart: always
environment:
MARIADB_ROOT_PASSWORD: bloomrootpassword
MARIADB_DATABASE: bloomdb
MARIADB_USER: bloomuser
MARIADB_PASSWORD: bloompassword
ports:
- "3306:3306"
volumes:
- db_data:/var/lib/mysql
networks:
- bloom-network
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "localhost", "-u", "root", "-p$MARIADB_ROOT_PASSWORD"]
interval: 10s
timeout: 5s
retries: 5
start_period: 20s
bloom-server:
build:
context: .
image: bloom-server:latest
container_name: bloom-server
ports:
- "5000:8080"
- "2443:2443"
depends_on:
mariadb-prod:
condition: service_started
restart: true
environment:
- ASPNETCORE_ENVIRONMENT=Production
- ASPNETCORE_HTTPS_PORT=2443
restart: always
volumes:
- dpkeys:/var/dpkeys
networks:
- bloom-network
networks:
bloom-network:
driver: bridge
volumes:
dpkeys:
db_data: