-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathdocker-compose.yml
76 lines (69 loc) · 1.48 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
#
# Exmample compose configuration
# DO NOT USE FOR PRODUCTION
#
version: "3.7"
services:
app:
build:
context: .
target: development
command: dockerize -wait tcp://postgres:5432 ./docker-app-entrypoint.sh
restart: always
ports:
- "3000:3000"
depends_on:
- postgres
- redis
volumes:
- ./occams:/app/occams
- ./alembic:/app/alembic
- ./develop.ini:/app/develop.ini
- ./bower.json:/app/bower.json
- ./tests:/app/tests
- blobs:/files/blobs
- exports:/files/exports
tasks:
build:
context: .
target: development
command: dockerize -wait tcp://postgres:5432 ./docker-tasks-entrypoint.sh
restart: always
depends_on:
- postgres
- redis
volumes:
- ./occams:/app/occams
- ./develop.ini:/app/develop.ini
- blobs:/files/uploads
- exports:/files/exports
postgres:
build: ./postgres
restart: always
environment:
- POSTGRES_USER=occams
- POSTGRES_PASSWORD=occams
- POSTGRES_DB=occams
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data/
postgres-test:
build: ./postgres
restart: always
environment:
- POSTGRES_USER=test
- POSTGRES_PASSWORD=test
- POSTGRES_DB=test
tmpfs: /var/lib/postgresql/data
ports:
- "6543:5432"
redis:
image: redis:5.0.8
restart: always
ports:
- "6379:6379"
volumes:
blobs:
exports:
postgres: