-
Notifications
You must be signed in to change notification settings - Fork 19
/
docker-compose_dev.yml
executable file
·49 lines (45 loc) · 1.33 KB
/
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
# https://docs.docker.com/compose/yml/
# Each service defined in docker-compose.yml must specify exactly one of
# image or build. Other keys are optional, and are analogous to their
# docker run command-line counterparts.
#
# As with docker run, options specified in the Dockerfile (e.g., CMD,
# EXPOSE, VOLUME, ENV) are respected by default - you don't need to
# specify them again in docker-compose.yml.
#
version: '3.7'
services:
chris_store_dev:
image: ${CREPO}/chris_store:dev
build:
context: .
args:
ENVIRONMENT: local
stdin_open: true # docker run -i
tty: true # docker run -t
command: python manage.py runserver 0.0.0.0:8010
volumes:
- ./store_backend:/home/localuser/store_backend:z
environment:
- DJANGO_SETTINGS_MODULE=config.settings.local
- DJANGO_DB_MIGRATE=on
ports:
- "8010:8010"
depends_on:
- chris_store_dev_db
labels:
name: "ChRIS_store"
role: "Development server"
chris_store_dev_db:
image: postgres:16
volumes:
- chris_store_dev_db_data:/var/lib/postgresql/data
environment:
- POSTGRES_DB=chris_store_dev
- POSTGRES_USER=chris
- POSTGRES_PASSWORD=Chris1234
labels:
name: "ChRIS_store PostgreSQL Database"
role: "Development database"
volumes:
chris_store_dev_db_data: