-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
61 lines (56 loc) · 1.16 KB
/
docker-compose.yaml
File metadata and controls
61 lines (56 loc) · 1.16 KB
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
53
54
55
56
57
58
59
60
61
version: '3'
services:
db:
container_name: postgres_app
image: postgres
ports:
- '5433:5432'
environment:
POSTGRES_USER: "raktim"
POSTGRES_PASSWORD: "12345678"
POSTGRES_DB: "db"
TZ: 'UTC'
PGTZ: 'UTC'
build:
container_name: ipatser_app_build
build:
context: .
dockerfile: build.ipatser.dockerfile
image: ipatser/build
#command: sh -c "sleep infinity"
deploy:
container_name: ipatser_app_deploy
build:
context: .
dockerfile: deploy.ipatser.dockerfile
image: ipatser/deploy
ports:
- 8000:8000
restart: on-failure
environment:
PORT: 8000
DB_CONN: "postgres://user:password@db:5432/db?sslmode=disable"
command: sh -c "/vcs_ipatser"
#command: sh -c "sleep infinity"
volumes:
- .:/app
depends_on:
- db
- build
links:
- db
- build
test:
container_name: ipatser_app_test
image: ipatser/build
restart: on-failure
command: sh -c "sh test.sh"
#command: sh -c "sleep infinity"
depends_on:
- db
- build
- deploy
links:
- db
- build
- deploy