-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yml
76 lines (68 loc) · 1.63 KB
/
docker-compose.yml
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
72
73
74
75
76
version: '2.3'
x-volumes:
&default-volumes
volumes:
- .:/app:delegated
x-environment:
&default-environment
LAGOON_ROUTE: &default-url http://${COMPOSE_PROJECT_NAME:-demo-python-simple-flask}.docker.amazee.io
# Uncomment if you like to have the system behave like in production
#LAGOON_ENVIRONMENT_TYPE: production
x-user:
&default-user
user: '1000'
services:
cli:
build:
context: .
dockerfile: lagoon/cli.dockerfile
image: &cli-image ${COMPOSE_PROJECT_NAME:-demo-python-simple-flask}-cli
labels:
lagoon.type: cli-persistent
lagoon.persistent: /app/storage/
<< : *default-volumes
user: root
volumes_from:
- container:amazeeio-ssh-agent
environment:
<< : *default-environment
nginx:
build:
context: .
dockerfile: lagoon/nginx.dockerfile
args:
CLI_IMAGE: *cli-image
labels:
lagoon.type: nginx
<< : *default-volumes
<< : *default-user
depends_on:
- cli
environment:
<< : *default-environment
LAGOON_LOCALDEV_URL: *default-url
networks:
- amazeeio-network
- default
gunicorn:
build:
context: .
dockerfile: lagoon/gunicorn.dockerfile
args:
CLI_IMAGE: *cli-image
labels:
lagoon.autogeneratedroute: false
lagoon.type: python-persistent
lagoon.persistent.name: cli
lagoon.persistent: /app/storage/
<< : *default-volumes
<< : *default-user
depends_on:
- cli
environment:
<< : *default-environment
ports:
- "8000"
networks:
amazeeio-network:
external: true