-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
37 lines (37 loc) · 836 Bytes
/
docker-compose.yml
File metadata and controls
37 lines (37 loc) · 836 Bytes
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
version: '3'
services:
database:
image: bitnami/postgresql:11-debian-9
restart: on-failure
ports:
- '0.0.0.0:5432:5432'
environment:
- POSTGRESQL_PASSWORD=testpasswd
- POSTGRESQL_USERNAME=testuser
- POSTGRESQL_DATABASE=testdb
- POSTGRESQL_REPLICATION_MODE=master
- POSTGRESQL_REPLICATION_USER=repuser
- POSTGRESQL_REPLICATION_PASSWORD=reppassword
networks:
pple2net:
ipv4_address: 172.16.24.2
server:
build:
context: .
dockerfile: ./dev.dockerfile
ports:
- '3000:3000'
volumes:
- '.:/boilerplate/web'
depends_on:
- database
command: 'yarn dev'
networks:
pple2net:
ipv4_address: 172.16.24.3
networks:
pple2net:
driver: bridge
ipam:
config:
- subnet: 172.16.24.0/24