forked from fossasia/eventyay-video
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
79 lines (79 loc) · 2.29 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
version: '3'
services:
server:
build:
context: ./server
dockerfile: Dockerfile-dev
ports:
- "8375:8375"
volumes:
- ./server:/app:ro
- appdata:/data
environment:
- VENUELESS_DB_TYPE=postgresql
- VENUELESS_DB_NAME=venueless
- VENUELESS_DB_USER=venueless
- VENUELESS_DB_PASS=venueless
- VENUELESS_DB_HOST=db
- VENUELESS_REDIS_URLS=redis://redis:6379/0,redis://redis1:6379/0
- VENUELESS_DATA_DIR=/data
- VENUELESS_MEDIA_URL=http://localhost:8375/media/
- VENUELESS_REDIS_USE_PUBSUB=true
entrypoint: ["bash", "/app/docker-dev-entrypoint.sh"]
depends_on:
- db
- redis
- redis1
celery:
build:
context: ./server
dockerfile: Dockerfile-dev
volumes:
- ./server:/app:ro
- appdata:/data
environment:
- VENUELESS_DB_TYPE=postgresql
- VENUELESS_DB_NAME=venueless
- VENUELESS_DB_USER=venueless
- VENUELESS_DB_PASS=venueless
- VENUELESS_DB_HOST=db
- VENUELESS_REDIS_URLS=redis://redis:6379/0,redis://redis1:6379/0
- VENUELESS_DATA_DIR=/data
- VENUELESS_MEDIA_URL=http://localhost:8375/media/
entrypoint: ["bash", "/app/docker-dev-entrypoint-celery.sh"]
depends_on:
- db
- redis
- redis1
webapp:
build:
context: ./webapp
dockerfile: Dockerfile-dev
ports:
- "8880:8880"
volumes:
- ./webapp:/app:ro
command: ["npm", "start", "--", "--host", "0.0.0.0"]
redis:
image: "redis:latest"
redis1:
image: "redis:latest"
db:
image: "postgres:15"
ports:
- "5438:5432"
volumes:
- postgres_data:/var/lib/postgresql/data/
environment:
- POSTGRES_INITDB_ARGS=--auth-host=md5
- POSTGRES_HOST_AUTH_METHOD=md5
- POSTGRES_USER=venueless
- POSTGRES_PASSWORD=venueless
volumes:
postgres_data:
appdata:
networks:
default:
ipam:
config:
- subnet: 172.177.0.0/16