-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
64 lines (57 loc) · 1.36 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
version: '3'
# This file defines development setting, e.g. debugging & realoading
services:
web:
build: ./
image: species-challenge:latest
volumes:
- ./app:/usr/src/app
ports:
- "8081:8081"
env_file:
- .env
entrypoint: >
gunicorn
--chdir /usr/src/app main:app -w 1
--threads 1 -b 0.0.0.0:8081
--timeout 120
--reload
--reload-extra-file /usr/src/app/templates/base.html
--reload-extra-file /usr/src/app/templates/form_challenge100.html
# Note that the extra-files have to exist, otherwise dockec-compose will complain "Error: File ... does not exists."
depends_on:
- db
db:
image: mariadb:10.5
volumes:
- mariadb_data:/var/lib/mysql
- ./docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
env_file:
- .env
ports:
- "3306:3306"
phpmyadmin:
image: phpmyadmin/phpmyadmin
environment:
PMA_HOST: db
PMA_PORT: 3306
UPLOAD_LIMIT: 100M
ports:
- "8080:80"
depends_on:
- db
playwright:
build:
context: .
dockerfile: Dockerfile.playwright
env_file:
- playwright.env
volumes:
- ./tests-playwright:/tests
depends_on:
- web
environment:
- WEB_URL=http://web:8081
command: tail -f /dev/null # keep the container running
volumes:
mariadb_data: