-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.dev.yml
49 lines (49 loc) · 1022 Bytes
/
docker-compose.dev.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
version: "3.2"
services:
db:
restart: always
image: postgres:10.1-alpine
container_name: corpjukdev_pg01
environment:
POSTGRES_DB: db
POSTGRES_USER: pguser
POSTGRES_PASSWORD: pguser123
volumes:
- ./pg-data:/var/lib/postgresql/data/
ports:
- "5432:5432"
networks:
- main
app:
restart: always
build:
context: .
dockerfile: Dockerfile
container_name: corpjukdev_dj01
environment:
- DJANGO_SETTINGS_MODULE=eatplants.settings.dev
- PYTHONDONTWRITEBYTECODE=1
volumes:
- ./static:/app/static
networks:
- main
depends_on:
- db
env_file:
- .env
nginx:
restart: always
image: nginx:1.15-alpine
container_name: corpjukdev_ng01
volumes:
- ./config/nginx.conf:/etc/nginx/conf.d/default.conf:ro
- ./static:/usr/share/nginx/corpjukdev/static
ports:
- "80:80"
- "443:443"
networks:
- main
depends_on:
- app
networks:
main: