-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
55 lines (52 loc) · 1.03 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
version: '3.8'
services:
postgres:
build:
context: .
dockerfile: Dockerfile-postgresql
container_name: postgres
environment:
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres_data:/var/lib/postgresql/data
ports:
- '5432:5432'
networks:
local-network:
ipv4_address: 172.23.0.13
env_file:
- .env
rails:
build:
context: .
dockerfile: Dockerfile
image: ceps-api
container_name: rails
tty: true
ports:
- '3000:3000'
env_file:
- .env
volumes:
- .:/ceps-api
- gems:/usr/local/bundle/
depends_on:
- postgres
external_links:
- postgres
environment:
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
POSTGRES_HOST: postgres
networks:
local-network:
ipv4_address: 172.23.0.15
networks:
local-network:
ipam:
driver: default
config:
- subnet: "172.23.0.0/24"
volumes:
postgres_data:
gems: