-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathdocker-compose.yml
52 lines (45 loc) · 1.12 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
version: '3'
services:
web_server:
build: web_server
ports:
- 80:80
- 443:443
volumes:
- ./web_server/nginx.conf:/etc/nginx/nginx.conf
links:
- api
api:
build: api
volumes:
- ./api/src:/meep/api/src
- ./api/tests:/meep/api/tests
expose:
- 8000
ports:
- 8000:8000
depends_on:
- db
- test_db
environment:
- DEV_DATABASE_URL=postgresql://meep:supersafe@db:5432/meep_api
- TEST_DATABASE_URL=postgresql://meep:supersafe@test_db:5432/test_meep_api
links:
- db
- test_db
db:
image: kartoza/postgis
environment:
- POSTGRES_USER=meep
- POSTGRES_PASSWORD=supersafe
- POSTGRES_DB=meep_api
volumes:
- "postgres_data:/var/lib/postgresql/data"
test_db:
image: kartoza/postgis
environment:
- POSTGRES_USER=meep
- POSTGRES_PASSWORD=supersafe
- POSTGRES_DB=test_meep_api
volumes:
postgres_data: