-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
56 lines (51 loc) · 1.27 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'
volumes:
postgres:
django_static:
services:
nginx:
container_name: nginx
build: ./nginx
environment:
- TZ=Asia/Seoul
image: docker-server/nginx
restart: always
volumes:
- ./nginx/logs:/var/log/nginx
- django_static:/roccia_901/static
ports:
- "8080:80"
depends_on:
- backend
backend:
container_name: backend
build: ./backend
image: docker-server/backend
env_file:
- ./backend/.env.dev.docker
environment:
- TZ=Asia/Seoul
restart: always
entrypoint: ./wait-for-it.sh database:5432 --
command: sh -c "./init.sh"
volumes:
- ./backend/logs:/roccia_901/logs
- django_static:/roccia_901/static
expose:
- 8000
depends_on:
- database
- cache
database:
container_name: database
image: postgres:14.9
environment:
- TZ=Asia/Seoul
env_file:
- ./backend/.env.dev.docker
restart: always
volumes:
- postgres:/var/lib/postgresql/data
cache:
container_name: cache
image: redis:7