-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
60 lines (55 loc) · 1.39 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
version: '3.7'
services:
elogpg:
image: postgres:14.2
restart: always
container_name: elog_psql
environment:
PGTZ: $PGTZ
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
ports:
- $POSTGRES_HOST_PORT:5432
volumes:
- $PWD/queries:/queries
- $PWD/queries/init.sql:/docker-entrypoint-initdb.d/init.sql
- $PWD/data:/var/lib/postgresql/data
sqlgui:
image: adminer
restart: always
container_name: elog_sqlgui
ports:
- $SQLGUI_HOST_PORT:8080
environment:
- ADMINER_DEFAULT_SERVER=$POSTGRES_HOST
- ADMINER_PLUGINS=tables-filter tinymce
- ADMINER_DESIGN=pepa-linha
depends_on:
- elogpg
serve:
build:
context: .
dockerfile: Dockerfile
restart: always
command: supervisord
container_name: elog_flap
volumes:
- .:/var/www/
environment:
POSTGRES_DB: $POSTGRES_DB
POSTGRES_USER: $POSTGRES_USER
POSTGRES_PASSWORD: $POSTGRES_PASSWORD
POSTGRES_HOST: $POSTGRES_HOST
FLASK_SKIP_DOTENV: $FLASK_SKIP_DOTENV
FLASK_ENV: $FLASK_ENV
FLASK_APP: $FLASK_APP
FLASK_DEBUG: $FLASK_DEBUG
FLASK_RUN_HOST: $FLASK_RUN_HOST
SITE_NAME: $SITE_NAME
SECRET_KEY: $SECRET_KEY
ELAP_STATUS: $ELAP_STATUS
ports:
- $SERVER_HOST_PORT:80
- $DEV_SERVER_HOST_PORT:5000
- $SUPERVISOR_HOST_PORT:9001
depends_on:
- elogpg