-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
78 lines (74 loc) · 1.61 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
77
78
version: '3'
services:
artbook-app:
build:
context: app
dockerfile: Dockerfile
container_name: artbook-app
image: artbook-app
restart: unless-stopped
environment:
FLASK_ENV: "prod"
FLASK_DEBUG: 0
APP_PORT: 5000
NEO4J_USERNAME: neo4j
NEO4J_PASSWORD: test
volumes:
- ./app:/var/www
command: gunicorn -w 4 --bind=0.0.0.0:5000 "artbook:create_app()"
depends_on:
- artbook-db
networks:
- artbook-frontend
- artbook-backend
artbook-db:
image: neo4j:3.5
container_name: artbook-db
restart: unless-stopped
ports:
- 7474:7474
- 7687:7687
volumes:
- neo4jdata:/conf
- neo4jdata:/data
- neo4jdata:/import
- neo4jdata:/logs
- neo4jdata:/plugins
environment:
- NEO4J_AUTH=neo4j/test
- NEO4J_dbms_memory_pagecache_size=1G
- NEO4J_dbms.memory.heap.initial_size=1G
- NEO4J_dbms_memory_heap_max__size=1G
networks:
- artbook-backend
artbook-webserver:
build:
context: nginx
dockerfile: Dockerfile
image: artbook-webserver
container_name: artbook-webserver
restart: unless-stopped
environment:
APP_ENV: "prod"
APP_NAME: "webserver"
APP_DEBUG: "true"
SERVICE_NAME: "webserver"
ports:
- "8080:80"
- "8443:443"
volumes:
- nginxdata:/var/log/nginx
depends_on:
- artbook-app
networks:
- artbook-frontend
networks:
artbook-frontend:
driver: bridge
artbook-backend:
driver: bridge
volumes:
neo4jdata:
driver: local
nginxdata:
driver: local