-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
42 lines (38 loc) · 865 Bytes
/
docker-compose.yml
File metadata and controls
42 lines (38 loc) · 865 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
42
version: '2'
services:
frontend:
build: frontend
image: frontend:latest
ports:
- 80:80
links:
- backend:backend
backend:
build: backend
image: backend:latest
command: bash entrypoint.sh
volumes:
- ./backend:/code
ports:
- "8000:8000"
links:
- mariadb:mariadb
migrations:
build: migrations
image: migrations:latest
environment:
# https://flywaydb.org/documentation/envvars
- FLYWAY_USER=root
- FLYWAY_PASSWORD=password
- FLYWAY_DRIVER=org.mariadb.jdbc.Driver
- FLYWAY_LOCATIONS=filesystem:/opt/app/sql
- FLYWAY_URL=jdbc:mariadb://mariadb:3306
- FLYWAY_SCHEMAS=tasklist-schema
links:
- mariadb:mariadb
mariadb:
image: mariadb:10.2.12
environment:
- MYSQL_ROOT_PASSWORD=password
ports:
- 3306:3306