-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1021 Bytes
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1021 Bytes
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
version: '3'
volumes:
db-data:
services:
web:
build: .
ports:
- '3000:3000'
volumes:
- '.:/sentiment-dc' # TODO: Mounting the whole project into the container creates some problems. E.g.: ./tmp/pids/server.pid must be force removed manually in prestart.sh
- ./webapp:/opt/webapp
environment:
- 'DATABASE_PASSWORD=postgres'
tty: true
stdin_open: true
depends_on:
- db
links:
- db
entrypoint:
- bash
- /sentiment-dc/app/start.sh
db:
image: postgres:latest
volumes:
- 'db-data:/var/lib/postgresql/data'
ports:
- "5432:5432"
environment:
- 'POSTGRES_USER=postgres'
- 'POSTGRES_PASSWORD=postgres'
pgadmin4:
image: dpage/pgadmin4:latest
restart: always
# privileged: true
ports:
- 8888:80
volumes:
- ./volumes/pgadmin4:/var/lib/pgadmin
environment:
PGADMIN_DEFAULT_EMAIL: admin@server.com
PGADMIN_DEFAULT_PASSWORD: root
depends_on:
- db