-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
63 lines (61 loc) · 1.24 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
version: "3.9"
services:
db:
image: postgres:14
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
PGDATA: /var/lib/postgresql/data/pgdata
ports:
- "127.0.0.1:5433:5432"
volumes:
- pg_data:/var/lib/postgresql/data
restart: unless-stopped
mailcatcher:
image: tophfr/mailcatcher
ports:
- "127.0.0.1:1080:80"
- "127.0.0.1:1025:25"
restart: unless-stopped
web:
build:
context: .
dockerfile: ./dev.Dockerfile
command:
- bash
- docker-start-web.sh
volumes:
- .:/app
- static_files:/www/data
ports:
- "8001:8000"
env_file:
- .dc.env
environment:
STATIC_ROOT: /www/data
depends_on:
- db
- mailcatcher
nginx:
image: nginx
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- static_files:/www/data:ro
ports:
- "8000:80"
depends_on:
- web
restart: unless-stopped
swagger:
image: swaggerapi/swagger-ui
ports:
- "127.0.0.1:2080:8080"
restart: unless-stopped
environment:
- SWAGGER_JSON=/opt/openapi-schema.json
volumes:
- ./api/static/api:/opt
volumes:
pg_data:
static_files: