-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
57 lines (55 loc) · 1.06 KB
/
docker-compose.yaml
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
version: '3.3'
services:
caching:
image: redis
container_name: 2ofClubsRedis
restart: unless-stopped
ports:
- "6379:6379"
networks:
- backend
volumes:
- 2ofClubsRedis:/data
command: redis-server --requirepass password
db:
image: postgres
container_name: 2ofClubsDB
restart: unless-stopped
ports:
- "5432:5432"
env_file:
- db.env
environment:
- TZ=America/New_York
networks:
- backend
volumes:
- 2ofClubsVolume:/var/lib/postgresql/data
app:
# image: 2ofclubsapp/server
container_name: 2ofClubsServer
build:
context: ./
dockerfile: Dockerfile
restart: unless-stopped
depends_on:
- db
- caching
networks:
- backend
env_file:
- app.env
environment:
- TZ=America/New_York
ports:
- "8080:8080"
volumes:
- 2ofClubsPhotoStorage:/2ofClubsServer/images
command: go run main.go
volumes:
2ofClubsVolume:
2ofClubsRedis:
2ofClubsPhotoStorage:
networks:
backend:
driver: "bridge"