-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathdocker-compose.yml
51 lines (46 loc) · 897 Bytes
/
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
version: "2.2"
services:
go:
container_name: go
image: alrf/go-redis-pg:latest
restart: always
ports:
- "8080:8080"
env_file:
- .env
depends_on:
pg:
condition: service_healthy
links:
- pg
- redis
pg:
container_name: pg
image: postgres:11
restart: always
env_file:
- .env
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
volumes:
- ./data/pg:/var/lib/postgresql/data
depends_on:
- redis
redis:
container_name: redis
image: redis:alpine
restart: always
volumes:
- ./data/redis:/data
jenkins:
container_name: jenkins
build:
context: ./services/jenkins
restart: always
ports:
- "8090:8080"
volumes:
- /var/run/docker.sock:/var/run/docker.sock