forked from opensupplyhub/open-apparel-registry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
68 lines (66 loc) · 1.81 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
57
58
59
60
61
62
63
64
65
66
67
68
version: "2.4"
services:
database:
image: quay.io/azavea/postgis:3-postgres12.4-slim
environment:
- POSTGRES_USER=openapparelregistry
- POSTGRES_PASSWORD=openapparelregistry
- POSTGRES_DB=openapparelregistry
healthcheck:
test: ["CMD", "pg_isready", "-U", "openapparelregistry"]
interval: 3s
timeout: 3s
retries: 3
django:
image: openapparelregistry
env_file: .env
environment:
- POSTGRES_HOST=database
- POSTGRES_PORT=5432
- POSTGRES_USER=openapparelregistry
- POSTGRES_PASSWORD=openapparelregistry
- POSTGRES_DB=openapparelregistry
- DJANGO_ENV=Development
- DJANGO_SECRET_KEY=secret
- DJANGO_LOG_LEVEL=INFO
- AWS_PROFILE=${AWS_PROFILE:-open-apparel-registry}
- OAR_CLIENT_KEY=
build:
context: ./src/django
dockerfile: Dockerfile
volumes:
- ./src/django:/usr/local/src
- $HOME/.aws:/root/.aws:ro
working_dir: /usr/local/src
depends_on:
database:
condition: service_healthy
command:
- "-b :8081"
- "--reload"
- "--timeout=90"
- "--access-logfile=-"
- "--error-logfile=-"
- "--log-level=debug"
- "oar.wsgi"
ports:
- "8081:8081"
cpus: 2
app:
image: node:12-slim
working_dir: /usr/local/src
volumes:
- ./src/app:/usr/local/src
- /var/cache/open-apparel-registry-node-modules:/usr/local/src/node_modules
- ./src/django/static:/usr/local/src/build
- $HOME/.aws:/root/.aws:ro
environment:
- REACT_APP_GIT_COMMIT=${REACT_APP_GIT_COMMIT:-latest}
- CHOKIDAR_USEPOLLING=true
- CHOKIDAR_INTERVAL=100
- PORT=6543
ports:
- 6543:6543
working_dir: /usr/local/src
command: yarn run start