-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.dev.yml
40 lines (38 loc) · 994 Bytes
/
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
---
services:
flyway:
image: 'flyway/flyway:7.3.1'
container_name: 'the-gear-of-seasons_flyway'
hostname: 'the-gear-of-seasons_flyway'
restart: 'no'
volumes:
- ./db/flyway_data/sql:/flyway/sql
- ./db/flyway_data/conf:/flyway/conf
networks:
- 'dev-link'
profiles: ['tool']
postgres-dev:
image: 'postgres:alpine'
container_name: 'the-gear-of-seasons_postgres-dev'
hostname: 'the-gear-of-seasons_postgres-dev'
environment:
- 'POSTGRES_DB=the-gear-of-seasons'
- 'POSTGRES_USER=the-gear-of-seasons'
- 'POSTGRES_PASSWORD=the-gear-of-seasons'
- 'POSTGRES_INITDB_ARGS=--encoding=UTF8'
- 'TZ=Asia/Tokyo'
- 'PGTZ=Asia/Tokyo'
expose:
- '5432'
ports:
- '127.0.0.1:5432:5432'
volumes:
- './dev-var/psql:/var/lib/postgresql/data:z'
- './db/helpers:/helpers'
networks:
- 'dev-link'
tty: true
stdin_open: true
networks:
dev-link:
external: false