-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yaml
48 lines (39 loc) · 965 Bytes
/
docker-compose.yaml
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
version: "3.8"
services:
app:
container_name: traveller-lite
build:
context: .
dockerfile: Dockerfile
env_file:
- .env
environment:
IMP_CONFIG: docker.config.toml
EMAIL_DEV_MODE: 0
EMAIL_USERNAME: ${EMAIL_USERNAME}
EMAIL_PASSWORD: ${EMAIL_PASSWORD}
EMAIL_SERVER: ${EMAIL_SERVER}
EMAIL_PORT: ${EMAIL_PORT}
SUPER_ADMIN_ACCOUNT: ${SUPER_ADMIN_ACCOUNT}
SUPER_ADMIN_PASSWORD: ${SUPER_ADMIN_PASSWORD}
restart: always
ports:
- "${FLASK_PORT}:5000"
depends_on:
- database
database:
container_name: traveller-lite-db
image: postgres:latest
env_file:
- .env
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_DB: ${POSTGRES_DB}
volumes:
- postgres-database:/var/lib/postgresql/data
restart: always
ports:
- "5432:5432"
volumes:
postgres-database: