-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
28 lines (26 loc) · 842 Bytes
/
docker-compose.prod.yml
File metadata and controls
28 lines (26 loc) · 842 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
version: "3.8"
# This file extends and overrides configuration in docker-compose.yml if
# both are passed in to `docker-compose up` like mentioned in the README
# See docs for explanation if you're curious https://docs.docker.com/compose/extends/
services:
# Add deployment config for pre-existing services
app:
image: arefeena/apprentice-app:latest
command: [ "gunicorn", "apprentice:app", "--bind=0.0.0.0:5000", "--workers=2" ]
deploy:
restart_policy:
condition: on-failure
recipes:
image: arefeena/apprentice-recipes:latest
deploy:
restart_policy:
condition: on-failure
# Add nginx reverse proxy/load balancing service
nginx:
build: ./nginx
image: arefeena/apprentice-nginx:latest
ports:
- "80:80"
deploy:
restart_policy:
condition: on-failure