-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (67 loc) · 2 KB
/
docker-compose.yml
File metadata and controls
71 lines (67 loc) · 2 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
70
71
services:
webserver:
image: nginx:1-alpine
ports:
- '80:80'
- '443:443'
environment:
DOMAIN: 0.0.0.0
WEBSITE_PORT: ${WEBSITE_PORT}
API_PORT: ${BACKEND_API_PORT}
volumes:
- .docker/nginx/templates:/etc/nginx/templates
- .docker/nginx/options-ssl-nginx.conf:/etc/nginx/options-ssl-nginx.conf
- .docker/nginx/gzip.conf:/etc/nginx/gzip.conf
- .docker/nginx/ssl-dhparams.pem:/etc/nginx/ssl-dhparams.pem
- .docker/sertbot/conf:/etc/letsencrypt:ro
- .docker/sertbot/www:/var/www/certbot:ro
website:
build:
context: .
dockerfile: apps/website/Dockerfile
environment:
PORT: ${WEBSITE_PORT}
API_HOST: backend-api
API_PORT: ${BACKEND_API_PORT}
SESSION_COOKIE_SECRET: ${SESSION_COOKIE_SECRET}
SOURCE_IMAGES_PATH: /opt/data/source
ports:
- ${WEBSITE_PORT}:${WEBSITE_PORT}
volumes:
- ${SOURCE_IMAGES_PATH}:/opt/data/source
- ${PROCESSED_IMAGES_PATH}:/opt/data/processed
backend-api:
build:
context: .
dockerfile: apps/backend-api/Dockerfile
environment:
PORT: ${BACKEND_API_PORT}
REDIS_URL: ${REDIS_URL}
SESSION_COOKIE_SECRET: ${SESSION_COOKIE_SECRET}
SOURCE_IMAGES_PATH: /opt/data/source
PROCESSED_IMAGES_PATH: /opt/data/processed
ports:
- ${BACKEND_API_PORT}:${BACKEND_API_PORT}
volumes:
- ${SOURCE_IMAGES_PATH}:/opt/data/source
- ${PROCESSED_IMAGES_PATH}:/opt/data/processed
image-processor:
build:
context: .
dockerfile: apps/image-processor/Dockerfile
environment:
REDIS_URL: ${REDIS_URL}
SOURCE_IMAGES_PATH: /opt/data/source
PROCESSED_IMAGES_PATH: /opt/data/processed
depends_on:
- redis
volumes:
- ${SOURCE_IMAGES_PATH}:/opt/data/source
- ${PROCESSED_IMAGES_PATH}:/opt/data/processed
redis:
image: redis:7-alpine
ports:
- ${REDIS_PORT}:6379
volumes:
- ./data:/data
command: redis-server --save 60 1 --loglevel warning