-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
58 lines (53 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
58 lines (53 loc) · 1.17 KB
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
version: '3.5'
networks:
quatrolabs-network:
driver: bridge
quatrolabs-space-network:
driver: bridge
services:
space-redis:
image: 'redis:5.0.0'
container_name: space-redis
command: ["redis-server", "--appendonly", "yes"]
hostname: space-redis
expose:
- "6379"
restart: always
volumes:
- space-redis-data:/data
networks:
- quatrolabs-space-network
space-postgres:
image: 'postgres:9.6.10'
container_name: space-postgres
hostname: space-postgres
expose:
- "5432"
restart: always
volumes:
- space-postgres-data:/var/lib/postgresql/data
environment:
POSTGRES_USER: user
POSTGRES_PASSWORD: password
POSTGRES_DB: space_development
POSTGRES_HOST_AUTH_METHOD: "trust"
listen_addresses: "*"
networks:
- quatrolabs-space-network
space:
build:
context: .
container_name: space
image: space
restart: always
ports:
- "9000:9000"
volumes:
- space-web-public:/app/web/public
networks:
- quatrolabs-space-network
- quatrolabs-network
volumes:
space-redis-data:
space-postgres-data:
space-web-public: