-
-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
35 lines (33 loc) · 727 Bytes
/
docker-compose.yml
File metadata and controls
35 lines (33 loc) · 727 Bytes
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
version: "3.9"
volumes:
redis_data:
static:
services:
redis:
image: redis:alpine
command: redis-server --save 60 1
restart: always
volumes:
- redis_data:/data
app:
build: .
restart: always
volumes:
- static:/home/spongeauth/public_html/static
- ../media:/home/spongeauth/public_html/media
env_file: .env
extra_hosts:
- "host.docker.internal:host-gateway"
links:
- "redis"
proxy:
image: nginx:mainline-alpine
restart: always
volumes:
- static:/usr/share/nginx/public_html/static
- ../media:/usr/share/nginx/public_html/media
- ./nginx.conf:/etc/nginx/nginx.conf
links:
- "app"
ports:
- "8080:80"