-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
47 lines (43 loc) · 919 Bytes
/
Copy pathdocker-compose.yaml
File metadata and controls
47 lines (43 loc) · 919 Bytes
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
version: '3'
services:
redis:
container_name: redis
hostname: redis
restart: always
build:
context: /redis
dockerfile: Dockerfile
image: redis_on_deb/latest
volumes:
- ./redis/redis_conf:/usr/local/etc/redis/
- ./redis/redis_acl:/etc/redis/
- ./redis/crt:/etc/redis/tls/
- redisdata:/var/lib/redis/
golang:
container_name: golang
hostname: golang
restart: always
build:
context: /app
dockerfile: Dockerfile
image: backend_golang_at/latest
env_file:
- /app/backend/.env
volumes:
- ./app/backend/cert:/backend/cert
depends_on:
- redis
nginx:
container_name: nginx
hostname: nginx
restart: always
build:
context: /nginx
dockerfile: Dockerfile
image: nginx_on_deb/latest
ports:
- "8089:8089"
depends_on:
- golang
volumes:
redisdata: null