Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (67 loc) · 1.59 KB
/
Copy pathdocker-compose.yml
File metadata and controls
71 lines (67 loc) · 1.59 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
62
63
64
65
66
67
68
69
70
71
services:
postgres:
image: ghcr.io/seuros/postgis-with-extensions:18
container_name: vein-postgres
environment:
POSTGRES_DB: vein
POSTGRES_USER: vein
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-vein}
volumes:
- vein-pgdata:/var/lib/postgresql
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vein -d vein"]
interval: 10s
timeout: 5s
retries: 5
networks:
- vein-network
restart: unless-stopped
vein:
build: .
image: ghcr.io/contriboss/vein:latest
container_name: vein
depends_on:
postgres:
condition: service_healthy
ports:
- "8346:8346"
environment:
RUST_LOG: ${RUST_LOG:-info}
volumes:
- vein-data:/data
- ./vein.docker.toml:/data/vein.toml:ro
healthcheck:
test: ["CMD", "curl", "-fsS", "http://localhost:8346/up"]
interval: 30s
timeout: 5s
start_period: 10s
retries: 3
networks:
- vein-network
restart: unless-stopped
test:
build:
context: .
dockerfile: Dockerfile.test
container_name: vein-test
depends_on:
vein:
condition: service_healthy
environment:
# Point package managers to vein proxy
GEM_HOST: http://vein:8346
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
CARGO_REGISTRIES_CRATES_IO_INDEX: http://vein:8346/index/
NPM_CONFIG_REGISTRY: http://vein:8346/
networks:
- vein-network
stdin_open: true
tty: true
volumes:
vein-data:
driver: local
vein-pgdata:
driver: local
networks:
vein-network:
driver: bridge