-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
68 lines (61 loc) · 1.21 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: "3.7"
services:
service: &service
build:
dockerfile: ./docker/service.dockerfile
context: .
target: prod
args:
app_env: prod
stop_grace_period: "2s"
volumes:
- ./:/app
links:
- db
- browserless
depends_on:
- db
- browserless
db:
image: postgres
env_file:
- ".env"
volumes:
- pgdata:/var/lib/postgresql/data
restart: "unless-stopped"
browserless:
image: browserless/chrome
environment:
- MAX_CONCURRENT_SESSIONS=10
- CONNECTION_TIMEOUT=3600000 # 60 minute timeout
ports:
- "3000:3000"
devbox: &devbox
<<: *service
build:
dockerfile: ./docker/service.dockerfile
context: .
target: dev
args:
app_env: dev
entrypoint: "poetry shell"
stdin_open: true
tty: true
test:
<<: *devbox
command: ["just", "test"]
pgweb:
image: sosedoff/pgweb
env_file:
- ".env"
environment:
- DATABASE_URL=postgres://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/postgres?sslmode=disable
restart: "unless-stopped"
ports:
- "8081:8081"
links:
- db
depends_on:
- db
volumes:
pgdata: