-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (46 loc) · 982 Bytes
/
Copy pathdocker-compose.yml
File metadata and controls
47 lines (46 loc) · 982 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: '2'
services:
todoapp:
build: ./todoapp
container_name: todoapp
ports:
- '3000:3000'
volumes:
- ./todoapp:/app
todoapi_setup:
build: ./todoapi
depends_on:
- postgres
environment:
- PASSENGER_APP_ENV=development
entrypoint: ./setup.sh
todoapi:
container_name: todoapi
build: ./todoapi
depends_on:
- postgres
- todoapi_setup
environment:
- PASSENGER_APP_ENV=development
ports:
- "80:80"
volumes:
- ./todoapi:/home/app/todoapi
postgres:
image: postgres:9.6.6
container_name: tododb
environment:
- POSTGRES_PASSWORD=mysecretpassword
- POSTGRES_USER=todoapi
- POSTGRES_DB=todoapi_development
volumes_from:
- postgres_data
postgres_data:
container_name: tododb_data
image: postgres:9.6.6
volumes:
- pgdata:/var/lib/postgresql/data
command: /bin/true
volumes:
pgdata:
external: true