-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
45 lines (44 loc) · 1.12 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
version: '3'
services:
endar_server:
container_name: endar_server
image: endar_server
depends_on:
- postgres
networks:
- db_nw
- web_nw
ports:
- "5000:5000"
restart: unless-stopped
environment:
- SQLALCHEMY_DATABASE_URI=postgresql://${POSTGRES_USER:-db1}:${POSTGRES_PASSWORD:-db1}@${POSTGRES_HOST:-postgres}/${POSTGRES_DB:-db1}
- DEFAULT_EMAIL=${DEFAULT_EMAIL:-admin@example.com}
- DEFAULT_PASSWORD=${DEFAULT_PASSWORD:-admin}
- SETUP_DB=${SETUP_DB:-no}
- POSTGRES_DB=${POSTGRES_DB:-db1}
- DOC_LINK=https://github.com/tomkeene/endar
- VERSION=${VERSION:-1.0.0}
- APP_NAME=Endar
postgres:
container_name: postgres
image: postgres
environment:
POSTGRES_USER: ${POSTGRES_USER:-db1}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-db1}
POSTGRES_DB: ${POSTGRES_DB:-db1}
PGDATA: /data/postgres
#volumes:
# - postgres:/data/postgres
#ports:
# - "5432:5432"
networks:
- db_nw
restart: unless-stopped
networks:
db_nw:
driver: bridge
web_nw:
driver: bridge
volumes:
dbdata: