made a bookdb_webdev container, and passed appropriate FLASK_ENV to each bookdb_web* container
This commit is contained in:
@@ -696,9 +696,29 @@ services:
|
|||||||
- /srv/docker/container/bookdb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
- /srv/docker/container/bookdb/docker-entrypoint-initdb.d:/docker-entrypoint-initdb.d
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
|
||||||
|
bookdb_webdev:
|
||||||
|
container_name: bookdb_webdev
|
||||||
|
restart: always
|
||||||
|
environment:
|
||||||
|
FLASK_ENV: "container"
|
||||||
|
build:
|
||||||
|
context: '/home/ddp/src/pybook'
|
||||||
|
depends_on:
|
||||||
|
- bookdb_dev
|
||||||
|
- pihole
|
||||||
|
ports:
|
||||||
|
- '5001:5000'
|
||||||
|
volumes:
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
- /home/ddp/src/pybook/:/pybook_mapped_volume
|
||||||
|
labels:
|
||||||
|
- "com.centurylinklabs.watchtower.enable=false"
|
||||||
|
|
||||||
bookdb_web:
|
bookdb_web:
|
||||||
container_name: bookdb_web
|
container_name: bookdb_web
|
||||||
restart: always
|
restart: always
|
||||||
|
environment:
|
||||||
|
FLASK_ENV: "production"
|
||||||
build:
|
build:
|
||||||
context: '/home/ddp/src/pybook'
|
context: '/home/ddp/src/pybook'
|
||||||
depends_on:
|
depends_on:
|
||||||
|
|||||||
Reference in New Issue
Block a user