-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
49 lines (45 loc) · 1.02 KB
/
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
48
49
version: '3'
services:
distro:
image: alpine
container_name: Alpine_Distro
restart: always
entrypoint: tail -f /dev/null
exchange-rate-db:
container_name: exchange-rate-db
image: mariadb:10.3
restart: always
volumes:
- ./docker/mariadb/data:/var/lib/mysql:rw
- ./database/init.sql:/docker-entrypoint-initdb.d/schema.sql:ro
ports:
- "3306:3306"
environment:
- MYSQL_USER=user
- MYSQL_PASSWORD=user
- MYSQL_ROOT_PASSWORD=root
- MYSQL_DATABASE=db
exchange_rate-application:
container_name: exchange-rate-app
build:
context: ../exchange_rate_service
dockerfile: ./Dockerfile
image: exchange-rate-app:latest
restart: always
expose:
- 8081
ports:
- "8081:8081"
depends_on:
- exchange-rate-db
volumes:
- /var/log:/log
links:
- exchange-rate-db:db
- distro
environment:
- PERIOD=300
- PERIOD_TYPE=SECONDS
volumes:
data:
external: true