-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
48 lines (46 loc) · 904 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
48 lines (46 loc) · 904 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
48
services:
ui:
build:
context: ./assets
# user: 1000:1001
volumes:
- ./assets:/opt/app
- node_modules:/opt/app/node_modules
ports:
- "5000:5000"
depends_on:
- api
api:
tty: true
build:
context: .
dockerfile: ./Dockerfile
environment:
PGDATABASE: spades_dev
PGUSER: spades
PGPASSWORD: spades
PGHOST: db
PASSWORD_SALT: 1234
TERM: "xterm-256color"
volumes:
- ./src:/opt/app/src
- ./test:/opt/app/test
- ./priv/static:/opt/app/static
- /opt/app/build/
ports:
- "3000:3000"
- "4000:4000"
depends_on:
- db
db:
image: postgres
environment:
POSTGRES_USER: spades
POSTGRES_PASSWORD: spades
POSTGRES_DB: spades_dev
ports:
- "5432:5432"
volumes:
- /var/lib/postgresql/data
volumes:
node_modules: