-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlocal.yml
52 lines (48 loc) · 1.09 KB
/
local.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
version: '3'
volumes:
local_postgres_data: {}
local_postgres_data_backups: {}
services:
yig_api:
container_name: yig_api
build:
context: .
dockerfile: ./compose/local/django/Dockerfile
depends_on:
- yig_postgres
volumes:
- .:/app:z
env_file:
- ./.envs/.local/.django
- ./.envs/.local/.postgres
ports:
- "8000:8000"
command: /start
stdin_open: true
tty: true
yig_postgres:
container_name: yig_postgres
build:
context: .
dockerfile: ./compose/production/postgres/Dockerfile
container_name: yig_postgres
hostname: postgres
volumes:
- local_postgres_data:/var/lib/postgresql/data:Z
- local_postgres_data_backups:/backups:z
env_file:
- ./.envs/.local/.postgres
yig_frontend:
container_name: yig_frontend
restart: always
build:
context: ./frontend
dockerfile: Dockerfile
container_name: yig_frontend
image: yig_frontend_image
depends_on:
- yig_api
volumes:
- ./frontend/nginx:/etc/nginx/conf.d
ports:
- 81:80