-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
53 lines (49 loc) · 1.1 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
services:
nginx:
image: nginx:latest
container_name: nginx
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
- ./certs:/etc/nginx/certs:ro
depends_on:
- easy_link
restart: unless-stopped
easy_link:
image: easy_link:latest
container_name: easy_link
env_file:
- ./.env
depends_on:
easy_link_data:
condition: service_healthy
easy_link_cache:
condition: service_started
restart: 'unless-stopped'
easy_link_data:
volumes:
- easy_link_data:/var/lib/postgresql/data
image: postgres:latest
container_name: postgres
environment:
POSTGRES_USER:
POSTGRES_PASSWORD:
POSTGRES_DB: easy_link
restart: 'unless-stopped'
healthcheck:
test: ["CMD-SHELL", "pg_isready"]
interval: 10s
timeout: 5s
retries: 5
easy_link_cache:
volumes:
- easy_link_cache:/data
image: memcached:latest
container_name: memcached
command: ["memcached"]
restart: 'unless-stopped'
volumes:
easy_link_data:
easy_link_cache: