-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
137 lines (130 loc) · 2.99 KB
/
docker-compose.dev.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
services:
# nginx:
# image: nginx:stable
# container_name: hanz_dev_nginx_server
# restart: unless-stopped
# ports:
# - "8080:80"
# networks:
# - hanz-nw
# volumes:
# - ./deployment/nginx/nginx.conf:/etc/nginx/nginx.conf
# - ./deployment/nginx/vhost.dev.conf:/etc/nginx/conf.d/default.conf
# - ./media:/app/media
# - ./static:/app/static
web:
build:
context: .
dockerfile: dev.Dockerfile
command: "python manage.py runserver 0.0.0.0:8000"
restart: unless-stopped
volumes:
- ./:/app/src
ports:
- "8000:8000"
networks:
- sfizz-nw
depends_on:
- db
environment:
- DATABASE_URL=postgres://user:password@db:5432/sfizz-db
- REDIS_URL=redis://redis:6379/1
- S3_ADDRESSING_STYLE=auto
- RUN_MIGRATION=true
- COLLECT_STATIC=true
- SENTRY_ENV=local
- SENTRY_DSN=https://[email protected]/5
env_file:
- .env
remark42:
image: umputun/remark42:v1.13.1
restart: unless-stopped
volumes:
- remark42-data:/srv/var
ports:
- "8080:8080"
networks:
- sfizz-nw
environment:
- DEBUG=true
- ADMIN_PASSWD=password
- REMARK_URL=http://127.0.0.1:8080
- SECRET=some-secret-key
- AUTH_ANON=true
- EMOJI=true
env_file:
- .env
# celery_worker:
# container_name: hanz_celery_worker
# build:
# context: .
# dockerfile: dev.Dockerfile
# command: celery -A hanz worker -l info
# volumes:
# - ./:/app/src
# environment:
# - DEBUG=1
# - DATABASE_URL=postgres://user:password@db:5432/hanz-db
# env_file:
# - .env
# networks:
# - hanz-nw
# depends_on:
# - db
# - redis
#
# celery_beat:
# container_name: hanz_celery_beat
# build:
# context: .
# dockerfile: dev.Dockerfile
# command: celery -A hanz beat -l info
# volumes:
# - ./:/app/src
# environment:
# - DEBUG=1
# - DATABASE_URL=postgres://user:password@db:5432/hanz-db
# env_file:
# - .env
# networks:
# - hanz-nw
# depends_on:
# - db
# - redis
#
# minio:
# image: quay.io/minio/minio
# container_name: hanz_dev_app_minio
# restart: unless-stopped
# networks:
# - hanz-nw
# ports:
# - "9000:9000"
# - "9001:9001"
# volumes:
# - ./dev_data/minio/data:/data
# env_file:
# - .env
# command: server /data --console-address ":9001"
db:
image: postgres:15-alpine
restart: unless-stopped
networks:
- sfizz-nw
volumes:
- sfizz-db-data:/var/lib/postgresql/db
environment:
- POSTGRES_DB=sfizz-db
- POSTGRES_USER=user
- POSTGRES_PASSWORD=password
- PGDATA=/var/lib/postgresql/db
# redis:
# image: redis:7-alpine
# restart: unless-stopped
# networks:
# - sfizz-nw
networks:
sfizz-nw:
volumes:
sfizz-db-data:
remark42-data: