-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
47 lines (42 loc) · 946 Bytes
/
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
version: '3.8'
services:
app:
build:
context: ./image/
dockerfile: Dockerfile
# command: "./run_indico.sh"
ports:
- 80:59999
depends_on:
- redis
- db
volumes:
- type: bind
source: ./config/indico.conf
target: /opt/indico/etc/indico.conf
db:
image: postgres:13-alpine
volumes:
- postgres_data:/var/lib/postgresql/data/
- type: bind
source: ./config/init-db.sh
target: /docker-entrypoint-initdb.d/init-db.sh
environment:
- POSTGRES_DB=indico
- POSTGRES_USER=username
- POSTGRES_PASSWORD=password
redis:
image: redis:7-alpine
celery-worker:
build:
context: ./image/
dockerfile: Dockerfile
command: "./run_celery.sh"
depends_on:
- app
volumes:
- type: bind
source: ./config/indico.conf
target: /opt/indico/etc/indico.conf
volumes:
postgres_data: