-
Notifications
You must be signed in to change notification settings - Fork 27
/
Copy pathdocker-compose.yml
54 lines (49 loc) · 1.41 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
version: '3'
name: ynr-dev
volumes:
psql-data:
services:
frontend:
image: ynr:test
command: gunicorn --reload --log-level=debug ynr.wsgi
env_file:
- path: env/frontend.env
required: false
environment:
PGHOST: dbpsql
PORT: 8080
volumes:
- ./ynr/:/dc/ynr/code/ynr/
- ./data/:/dc/ynr/code/data/
- ./requirements/:/dc/ynr/code/requirements/
- ./requirements.txt:/dc/ynr/code/requirements.txt
- ./manage.py:/dc/ynr/code/manage.py
- ./Makefile:/dc/ynr/code/Makefile
- ./scripts/:/dc/ynr/code/scripts/
- ./gulpfile.js:/dc/ynr/code/gulpfile.js
- ./package.json:/dc/ynr/code/package.json
- ./package-lock.json:/dc/ynr/code/package-lock.json
- ./pyproject.toml:/dc/ynr/code/pyproject.toml
ports:
- "8080:8080"
depends_on:
dbpsql:
condition: service_healthy
pull_policy: never
build:
dockerfile: container/build/Containerfile
# Context is relative to this docker-compose.yml file.
context: .
target: test
dbpsql:
image: public.ecr.aws/docker/library/postgres:16.4
pull_policy: missing
environment:
POSTGRES_DB: ynr
POSTGRES_USER: ynr
# This is completely insecure: all connections are trusted, without a password.
POSTGRES_HOST_AUTH_METHOD: trust
volumes:
- psql-data:/var/lib/postgresql/data
ports:
- 54321:5432