forked from rustless/rustless-example
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (35 loc) · 740 Bytes
/
docker-compose.yml
File metadata and controls
39 lines (35 loc) · 740 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
app:
build: ./docker/app
ports:
- "8080:8080"
expose:
- "8080"
links:
- db:db
volumes:
- rustless-example:/app
volumes_from:
- rustdata
environment:
- POSTGRES_CONNECTION=postgresql://rustless:rustless@db/rustless
rustdata:
build: ./docker/app
dockerfile: data.Dockerfile
db:
build: ./docker/postgres
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=p@$$w0Rd
expose:
- "5432"
dbclient:
image: postgres:9.4.1
links:
- db:db
command: /bin/true
environment:
- PGUSER=rustless
- PGPASSWORD=rustless
- PGDATABASE=rustless
- PGHOST=db
- PGPORT=5432