-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose-development.yml
54 lines (50 loc) · 1.2 KB
/
docker-compose-development.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
name: "pz"
services:
database:
image: postgres:13.6-alpine
env_file:
- .env
expose:
# Deixa a porta do banco de dados acessivel
# para ferramentas externas como o dbeaver por exemplo.
- 5432
volumes:
- ./pg_data:/var/lib/postgresql/data
backend:
build:
context: ./backend
args:
- "USERID=${USERID:-1000}"
- "GROUPID=${GROUPID:-1000}"
- "USERNAME=${USERNAME:-pzapp}"
command: /start.sh
user: "1000:1000"
env_file:
- .env
volumes:
- ./backend:/app
- ./archive/log/backend:/archive/log
- ./archive/data:/archive/data
# - ./saml2:/saml2 # uncomment if authentication with github is required
depends_on:
- database
frontend:
image: node:lts
user: "1000:1000"
working_dir: /app
volumes:
- ./frontend:/app
- ./.env.local:/app/.env.local
stdin_open: true
command: yarn dev
nginx:
image: nginx:1.21.6-alpine
ports:
- 80:8080
volumes:
- ./nginx_development.conf:/etc/nginx/conf.d/default.conf:ro
- ./archive/data:/var/www/data
- ./backend/htmlcov:/var/www/coverage
depends_on:
- backend
- frontend