-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.17 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
# SPDX-FileCopyrightText: 2024 Benedikt Franke <[email protected]>
# SPDX-FileCopyrightText: 2024 Florian Heinrich <[email protected]>
#
# SPDX-License-Identifier: Apache-2.0
services:
web:
image: ghcr.io/dlr-ki/fl-demonstrator-django:main
container_name: web
restart: always
build:
context: .
dockerfile: ./docker/django/Dockerfile
ports:
- 8000:8000
depends_on:
- db
- redis
env_file:
- docker/.env
celery:
image: ghcr.io/dlr-ki/fl-demonstrator-celery:main
container_name: celery
restart: always
build:
context: .
dockerfile: ./docker/celery/Dockerfile
depends_on:
- redis
env_file:
- docker/.env
redis:
image: redis
container_name: redis
restart: always
ports:
- "6379:6379" # port mapping only for development
db:
image: postgres
container_name: db
restart: always
ports:
- "5432:5432" # port mapping only for development
environment:
POSTGRES_USER: demo
POSTGRES_PASSWORD: example
# adminer:
# image: adminer
# container_name: adminer
# restart: always
# ports:
# - 8080:8080