-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.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
networks:
default:
volumes:
static:
mariadb_data:
services:
app:
container_name: erbsland-former-app
image: erbsland-former:latest
build:
context: .
dockerfile: ./Dockerfile
env_file:
- ".env"
environment:
DJANGO_SETTINGS_MODULE: ErbslandFormer.settings
restart: always
volumes:
- "static:/var/www/erbsland-former/static/"
networks:
- default
depends_on:
- mariadb
- redis
mariadb:
container_name: erbsland-former-mariadb
image: mariadb:11.4.2
restart: always
environment:
MARIADB_PASSWORD: ${MARIADB_PASSWORD}
MARIADB_ROOT_PASSWORD: ${MARIADB_ROOT_PASSWORD}
MARIADB_DATABASE: erbsland_former
MARIADB_USER: erbsland_former
volumes:
- "mariadb_data:/var/lib/mysql"
networks:
- default
redis:
container_name: erbsland-former-redis
image: redis:6.2-alpine
restart: always
command: redis-server --save 20 1 --loglevel warning
networks:
- default
nginx:
container_name: erbsland-former-nginx
image: nginx:1.27-alpine
ports:
- "8080:80"
volumes:
- "static:/var/www/erbsland-former/static/"
- "./docker/nginx.conf:/etc/nginx/conf.d/default.conf"
depends_on:
- app
networks:
- default