-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
73 lines (70 loc) · 1.47 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
version: "3.8"
x-common-variables: &common-variables
DOCKER_RUNNING: "true"
services:
nginx:
build:
context: .
dockerfile: nginx/Dockerfile
ports:
- "80:80"
depends_on:
- app
restart: always
logging:
driver: "local"
volumes:
- type: volume
source: public-content
target: /var/www/nmebious/static
volume:
nocopy: true
- type: volume
source: error-pages
target: /var/www/nmebious/error-pages
environment:
<<: *common-variables
MAX_FILE_SIZE: ${MAX_FILE_SIZE}
db:
build:
context: .
dockerfile: docker/db/Dockerfile
restart: always
logging:
driver: "local"
environment:
<<: *common-variables
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- dbdata:/var/lib/postgresql/data
app:
stdin_open: true
tty: true
build:
context: .
dockerfile: docker/app/Dockerfile
depends_on:
- db
ports:
- "4005:4005"
- "8080:8080"
- "12345:12345"
restart: always
logging:
driver: "local"
volumes:
- quicklisp:/root/quicklisp
- public-content:/usr/src/app/public
- error-pages:/usr/src/app/templates/error-pages
- type: bind
source: ./src/config.lisp
target: /usr/src/app/src/config.lisp
env_file:
- ./.env
environment:
- DB_HOST=db
volumes:
quicklisp:
public-content:
error-pages:
dbdata: