-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
41 lines (39 loc) · 954 Bytes
/
docker-compose.yml
File metadata and controls
41 lines (39 loc) · 954 Bytes
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
---
services:
scratchlog:
build:
context: .
dockerfile: Containerfile
restart: on-failure
environment:
spring.profiles.active: prod
spring.datasource.url: "jdbc:mariadb://database:3306/scratchlog"
spring.datasource.user: scratchlog
spring.datasource.password: scratchlog
# TODO: any other options from the properties that should be overriden?
networks:
- scratchlog
ports:
- "127.0.0.1:8090:8090/tcp"
depends_on:
database:
condition: service_started
database:
image: docker.io/library/mariadb:12
restart: on-failure
environment:
MYSQL_DATABASE: scratchlog
MYSQL_USER: scratchlog
MYSQL_PASSWORD: scratchlog
MYSQL_ROOT_PASSWORD: scratchlog
volumes:
- scratchlog-db:/var/lib/mysql
networks:
- scratchlog
ports:
- "127.0.0.1:3306:3306/tcp"
volumes:
scratchlog-db:
networks:
scratchlog:
...