-
Notifications
You must be signed in to change notification settings - Fork 7
/
docker-compose.dev.yml
94 lines (93 loc) · 2.17 KB
/
docker-compose.dev.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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: unteris-dev
services:
site:
build:
context: .
dockerfile: ./apps/site/Dockerfile
args:
SERVER_URL: http://localhost:3333/api
ports:
- '127.0.0.1:8080:80'
volumes:
- './apps/site/public/images:/src/dist/apps/site/images'
labels:
- 'com.centurylinklabs.watchtower.enable=true'
server:
build:
context: .
dockerfile: ./apps/server/Dockerfile
logging:
driver: local
env_file: .env
environment:
DATABASE_HOST: postgres
RABBIT_HOST: rabbit
volumes:
- './apps/site/public/images:/src/images'
ports:
- '127.0.0.1:3333:3333'
depends_on:
- postgres
- redis
- rabbit
labels:
- 'com.centurylinklabs.watchtower.enable=true'
image-server:
build:
context: .
dockerfile: ./apps/image-server/Dockerfile
logging:
driver: local
env_file: .env
environment:
DATABASE_HOST: postgres
RABBIT_HOST: rabbit
volumes:
- './apps/site/public/images:/src/images'
depends_on:
- postgres
- rabbit
labels:
- 'com.centurylinklabs.watchtower.enable=true'
migrations:
build:
context: .
dockerfile: ./apps/cli/Dockerfile
env_file: .env
environment:
DATABASE_HOST: postgres
RABBIT_HOST: rabbit
logging:
driver: local
depends_on:
- postgres
labels:
- 'com.centurylinklabs.watchtower.enable=true'
postgres:
build:
context: .
dockerfile: ./apps/postgres/Dockerfile
env_file: .env
ports:
- '127.0.0.1:5433:5432'
environment:
POSTGRES_PASSWORD: ${DATABASE_PASSWORD}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_DB: ${DATABASE_NAME}
labels:
- 'com.centurylinklabs.watchtower.enable=true'
volumes:
- ./tmp/postgres-data:/var/lib/postgresql/data
redis:
image: redis:7.2.1
ports:
- '127.0.0.1:6380:6379'
# command: redis-server /usr/local/etc/redis/redis.conf
rabbit:
image: rabbitmq:3.12.6
ports:
- '127.0.0.1:5673:5672'
- '127.0.0.1:15673:15672'
environment:
RABBITMQ_DEFAULT_USER: rabbit
RABBITMQ_DEFAULT_PASS: rabbit