-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
56 lines (54 loc) · 1.06 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
version: '3.8'
services:
redis:
image: 'bitnami/redis:latest'
container_name: yozing-redis
user: root
ports:
- '6379:6379'
volumes:
- ~/docker-yozing-redis:/bitnami'
env_file:
- environments/redis/.env
db:
image: postgres:14.1-alpine
container_name: yozing-db
env_file:
- environments/postgresql/.env
ports:
- '5432:5432'
volumes:
- ~/docker-yozing:/var/lib/postgresql/data
app:
user: root
container_name: yozing-app
build:
context: .
volumes:
- ./static:/app/static
- ./media:/app/media
depends_on:
- redis
- db
proxy:
user: root
container_name: yozing-proxy
build:
context: ./proxy
restart: always
volumes:
- ./proxy/default.conf:/etc/nginx/conf.d/default.conf
- ./proxy/proxy_params:/etc/nginx/proxy_params
- ./static:/app/static
- ./media:/app/media
ports:
- '80:80'
depends_on:
- app
volumes:
static:
driver: local
media:
driver: local
db:
driver: local