-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
56 lines (55 loc) · 1.07 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"
services:
backend:
# image: ghcr.io/renefs/cociplan:latest
build:
context: .
dockerfile: Dockerfile
container_name: backend
restart: always
command: gunicorn -b 0.0.0.0 -p 8000 cociplan.wsgi:application --bind 0.0.0.0:8000
volumes:
- logs:/app/logs
- static:/app/static
- media:/app/media
env_file:
- ./.env.prod
environment:
- DJANGO_ENV=prod
expose:
- 8000
depends_on:
- db
client:
# image: ghcr.io/renefs/cociplan-client:latest
build:
context: .
dockerfile: docker.client.Dockerfile
container_name: client
restart: always
env_file:
- ./.env.prod
environment:
- NGINX_PORT=8080
ports:
- 8080:80
volumes:
- static:/app/static
- media:/app/media
depends_on:
- backend
db:
image: mariadb:10
container_name: db
expose:
- 3306
restart: always
env_file:
- ./.env.prod
volumes:
- mariadb_data:/var/lib/mysql
volumes:
mariadb_data:
static:
media:
logs: