-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
49 lines (44 loc) · 976 Bytes
/
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:
tracktor:
build:
dockerfile: ./Dockerfile
context: ""
container_name: tracktor
depends_on:
- database
networks:
- backend
ports:
- 80:80
environment:
# FOR SQLITE
# - DATABASE_TYPE=sqlite
# - DATABASE_PATH=/
- DATABASE_TYPE=mysql
# - DATABASE_TYPE=postgresql
- DATABASE_USER=tracktor
- DATABASE_PASS=tracktor
- DATABASE_HOST=database
- DATABASE_NAME=tracktor
database:
image: mariadb:10
environment:
- MYSQL_RANDOM_ROOT_PASSWORD=1
- MYSQL_USER=tracktor
- MYSQL_PASSWORD=tracktor
- MYSQL_DATABASE=tracktor
networks:
- backend
# EXAMPLE FOR POSTGRES
# database:
# container_name: codimd_db
# image: postgres:14.0-alpine
# environment:
# - POSTGRES_USER=tracktor
# - POSTGRES_PASSWORD=tracktor
# - POSTGRES_DB=tracktor
# networks:
# - backend
networks:
backend: