-
Notifications
You must be signed in to change notification settings - Fork 123
/
docker-compose.yml
37 lines (34 loc) · 1.15 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
# This file is for development work. Not suitable for production.
version: '3.7'
services:
# anuko_tt is a web application built as per dockerfile specification.
anuko_tt:
build:
context: .
dockerfile: dockerfile-tt
image: anuko_timetracker:dev
container_name: anuko-timetracker
# Use localhost:8080 to connect to timetracker via browser.
ports:
- "8080:80"
# anuko_db is a mariadb instance to which timetracker connects.
# Connect parameters are also specified in timetracker dockerfile after
# creation of its configuration file. Specifically, we replace
# user name, password, service name (aka resolvable to IP server name
# where mariadb runs), and database name there from the defaults.
# These two sets of credentials must match for a successful connect.
anuko_db:
build:
context: .
dockerfile: dockerfile-db
image: "anuko_database:dev"
container_name: anuko-database
environment:
MYSQL_RANDOM_ROOT_PASSWORD: "yes"
MYSQL_DATABASE: timetracker
MYSQL_USER: anuko_user
MYSQL_PASSWORD: anuko_pw
volumes:
- anuko_db:/var/lib/mysql
volumes:
anuko_db: