forked from mate-academy/deno-drash-realworld-example-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.m1.yml
49 lines (44 loc) · 1 KB
/
docker-compose.m1.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
version: '3'
services:
apache:
container_name: realworld_apache
build:
context: .
dockerfile: .docker/apache.dockerfile
volumes:
- ./src:/var/www/src
working_dir: /var/www/src
depends_on:
- drash
ports:
- "8080:80"
networks:
- drash-app-network
postgres:
image: "postgres:11"
container_name: "realworld_postgres"
ports:
- "54320:5432"
volumes:
- ./.docker/data:/docker-entrypoint-initdb.d
environment:
- POSTGRES_USER=user
- POSTGRES_PASSWORD=userpassword
networks:
- drash-app-network
drash:
container_name: realworld_drash
build:
context: .
dockerfile: .docker/drash-m1.dockerfile
volumes:
- ./src:/var/www/src
working_dir: /var/www/src
ports:
- "1667:1667"
command: bash -c "npm i && npm run webpack & deno run --allow-net --allow-read --unstable app.ts"
networks:
- drash-app-network
networks:
drash-app-network:
driver: bridge