forked from 1997ckf/chat_server
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.dev.yml
36 lines (33 loc) · 1010 Bytes
/
docker-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
version: '3.8'
services:
chat_server:
container_name: chat_server
image: chat_server
build:
context: .
dockerfile: ./Dockerfile
volumes:
- ./bin/:/app/bin/
- ./lib/:/app/lib/
- ./migrations/:/app/migrations/
- ./test/:/app/test/
- ./public/:/app/public/
ports:
- 8888:8888
command:
sh -c "pub run aqueduct db upgrade --connect postgres://admin:password@database:5432/database_chat ;
pub run aqueduct auth add-client --id com.1997ckf.chat_server --secret myspecialsecret --connect postgres://admin:password@database:5432/database_chat ;
pub run aqueduct serve"
database:
image: postgres:11
container_name: postgres_database
environment:
- POSTGRES_PASSWORD=password
- POSTGRES_USER=admin
- POSTGRES_DB=database_chat
ports:
- 65432:5432 # If you want to expose the db from the container
volumes:
- db_data_chat:/var/lib/postgresql/data
volumes:
db_data_chat: