-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
49 lines (44 loc) · 1.02 KB
/
docker-compose.yml
File metadata and controls
49 lines (44 loc) · 1.02 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
version: '3.1'
services:
flash:
build: .
ports:
- 3000:3000
command: rails server -b 0.0.0.0 -p 3000 -e development
environment:
- FLASH_DB_USERNAME=super
- FLASH_DB_PASSWORD_FILE=/run/secrets/postgres-passwd
- FLASH_DB_HOSTNAME=database
- FLASH_DB_PORT=5432
volumes:
- .:/myapp # Comment this out to disable live updating
secrets:
- postgres-passwd
networks:
flash_network:
depends_on:
- postgres
postgres:
image: postgres:13.1-alpine
ports:
- 10258:5432
environment:
- POSTGRES_PASSWORD_FILE=/run/secrets/postgres-passwd
- POSTGRES_USER=super
- POSTGRES_DB=flash_development
volumes:
# - flash-pg-db:/var/lib/postgresql/data
- /var/run/postgresql:/var/run/postgresql
secrets:
- postgres-passwd
networks:
flash_network:
aliases:
- database
#volumes:
# flash-pg-db:
secrets:
postgres-passwd:
file: ./secrets/postgres-passwd
networks:
flash_network: