forked from fga-eps-mds/2022-2-schedula-gestor-de-usuarios
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
44 lines (41 loc) · 983 Bytes
/
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
version: '3'
services:
app:
container_name: schedula_user
image: schedula/user
build:
context: .
target: production
dockerfile: ./Dockerfile
volumes:
- '.:/code/'
ports:
- '3000:3000'
environment:
- ENVIRONMENT=DEVELOPMENT
- NODE_ENV=DEVELOPMENT
- DATABASE_HOST=postgres
- DATABASE_USER=postgres
- DATABASE_PASS=postgres
- DATABASE_DB=schedula_user
- DATABASE_PORT=5432
postgres:
image: postgres:latest
container_name: schedula_user_db
ports:
- '5103:5432'
volumes:
- ./.ignore/postgres/postgres:/var/lib/postgresql/data
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=schedula_user
pgadmin:
image: dpage/pgadmin4
environment:
PGADMIN_DEFAULT_EMAIL: '[email protected]'
PGADMIN_DEFAULT_PASSWORD: 'schedula123!'
ports:
- '16543:80'
depends_on:
- postgres