-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
69 lines (69 loc) · 1.37 KB
/
docker-compose.yml
File metadata and controls
69 lines (69 loc) · 1.37 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
version: '3.8'
services:
server:
build:
context: .
dockerfile: ./Dockerfile
args:
- http_proxy
- https_proxy
- no_proxy
image: docker.pkg.github.com/coryball/backend-template/template-server
networks:
web:
aliases:
- server
template:
aliases:
- server
env_file:
- env/prod.env
ports:
- 4000:4000
postgres:
container_name: backend_template_database
image: postgres:13.2
env_file:
- env/prod.env
expose:
- 5432
volumes:
- ./.docker/data/:/data/postgres
- ./.docker/psql_scripts/:/docker-entrypoint-initdb.d/
networks:
template:
aliases:
- database
web:
aliases:
- backend-template-database
healthcheck:
test: ["CMD-SHELL", "pg_isready -U postgres"]
interval: 10s
timeout: 5s
retries: 5
redis:
container_name: redis
image: redis:alpine3.13
restart: unless-stopped
expose:
- 6379
networks:
template:
aliases:
- redis
web:
aliases:
- backend-template-redis
volumes:
- ./.docker/redis:/data
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 1s
timeout: 3s
retries: 30
networks:
web:
external: true
template:
external: false