mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
Rename services in compose.
This commit is contained in:
parent
444e1221df
commit
25cb960198
@ -30,7 +30,7 @@ class DevelopmentConfig(Config):
|
||||
DEBUG = True
|
||||
|
||||
''' ### Flask-SQLAlchemy ### '''
|
||||
SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@opaque_database/{}'.format(
|
||||
SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@db/{}'.format(
|
||||
os.environ.get('POSTGRES_USER'),
|
||||
os.environ.get('POSTGRES_PASSWORD'),
|
||||
os.environ.get('POSTGRES_DB_NAME')
|
||||
@ -50,7 +50,7 @@ class TestingConfig(Config):
|
||||
|
||||
class ProductionConfig(Config):
|
||||
''' ### Flask-SQLAlchemy ### '''
|
||||
SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@opaque_database/{}'.format(
|
||||
SQLALCHEMY_DATABASE_URI = 'postgresql://{}:{}@db/{}'.format(
|
||||
os.environ.get('POSTGRES_USER'),
|
||||
os.environ.get('POSTGRES_PASSWORD'),
|
||||
os.environ.get('POSTGRES_DB_NAME')
|
||||
|
@ -1,11 +1,10 @@
|
||||
version: '3'
|
||||
|
||||
services:
|
||||
opaque:
|
||||
container_name: opaque
|
||||
web:
|
||||
depends_on:
|
||||
- opaque_database
|
||||
- opaque_redis
|
||||
- db
|
||||
- redis
|
||||
env_file:
|
||||
- opaque_database.env
|
||||
- opaque.env
|
||||
@ -15,23 +14,20 @@ services:
|
||||
restart: always
|
||||
volumes:
|
||||
- /opaque_storage:/opaque_storage
|
||||
opaque_daemon:
|
||||
container_name: opaque_daemon
|
||||
daemon:
|
||||
depends_on:
|
||||
- opaque_database
|
||||
- db
|
||||
env_file: opaque_database.env
|
||||
image: gitlab.ub.uni-bielefeld.de:4567/sfb1288inf/opaque_daemon:latest
|
||||
restart: always
|
||||
volumes:
|
||||
- $HOME/.docker/config.json:/home/opaque_daemon/.docker/config.json
|
||||
opaque_database:
|
||||
container_name: opaque_database
|
||||
db:
|
||||
env_file: opaque_database.env
|
||||
image: postgres:alpine
|
||||
restart: always
|
||||
volumes:
|
||||
- /opaque_database:/var/lib/postgresql/data
|
||||
opaque_redis:
|
||||
container_name: opaque_redis
|
||||
redis:
|
||||
image: redis:alpine
|
||||
restart: always
|
||||
|
Loading…
Reference in New Issue
Block a user