forked from FreeAndFair/ColoradoRLA
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
46 lines (43 loc) · 916 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
45
46
---
version: "2.1"
services:
server:
build:
context: .
dockerfile: ./docker/server/Dockerfile
image: colorado-rla/server:dev
depends_on:
- postgresql
ports:
- "8888:8888"
postgresql:
build:
context: .
dockerfile: ./docker/postgresql/Dockerfile
image: colorado-rla/postgres:dev
ports:
- "5432:5432"
httpd:
build:
context: .
dockerfile: ./docker/httpd/Dockerfile
image: colorado-rla/httpd:dev
depends_on:
- server
links:
- "server:backend"
ports:
- "8080:80"
test-credentials:
image: colorado-rla/postgres:dev
command:
- /bin/sh
- -c
- |
until psql --single-transaction -v ON_ERROR_STOP=1 \
-U corla -d corla -h postgresql \
< /root/corla-test-credentials.psql; do
sleep 5
done
depends_on:
- postgresql