-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
56 lines (50 loc) · 1.28 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
version: "3.6"
services:
paper-service:
image: paper-service:dev
tty: true
container_name: paper-service
build:
context: .
dockerfile: ./docker/development.Dockerfile
env_file:
- ./development.env
ports:
- 3001:3001
volumes:
- ./package.json:/usr/app/package.json
- ./jest:/usr/app/jest
- ./yarn.lock:/usr/app/yarn.lock
- ./tsconfig.json:/usr/app/tsconfig.json
- ./jest.config.js:/usr/app/jest.config.js
- ./.eslintrc.json:/usr/app/.eslintrc.json
- ./.eslintignore:/usr/app/.eslintignore
- ./src:/usr/app/src
networks:
- tcdl-paper-service
paper-service-db:
container_name: paper-service-db
image: postgres:12-alpine
volumes:
- postgres_volume:/var/lib/postgresql
environment:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: tcdl
networks:
- tcdl-paper-service
# Uncomment for init pgadmin ui instance
# paper-pgadmin:
# image: dpage/pgadmin4
# environment:
# PGADMIN_DEFAULT_EMAIL: user@domain.com
# PGADMIN_DEFAULT_PASSWORD: SuperSecret
# ports:
# - 5050:80
# networks:
# - tcdl-paper-service
volumes:
postgres_volume: {}
networks:
tcdl-paper-service:
driver: bridge