-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yml
46 lines (46 loc) · 1.43 KB
/
docker-compose.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
version: "2"
services:
albot-cpp-alpine:
# Say where the work directory and docker file is for this service
env_file:
- .env
build:
context: .
dockerfile: DockerfileAlpine
# Base image
image: alpine:latest
container_name: albot-cpp-alpine
# Work directory inside image
working_dir: /var/albot-cpp
ports:
- "5000:5000"
# Connect files from outside the container as given files inside the container
volumes:
- ./CODE:/var/albot-cpp/CODE
- ./IXWebSocket:/var/albot-cpp/IXWebSocket
- ./.env:/var/albot-cpp/.env
- ./bot.out.json:/var/albot-cpp/bot.out.json
- ./bot.json:/var/albot-cpp/bot.json
- ./GAME_VERSION:/var/albot-cpp/GAME_VERSION
albot-cpp-ubuntu:
# Say where the work directory and docker file is for this service
env_file:
- .env
build:
context: .
dockerfile: DockerfileUbuntu
# Base image
image: ubuntu:20.10
container_name: albot-cpp-ubuntu
# Work directory inside image
working_dir: /var/albot-cpp
ports:
- "5000:5000"
# Connect files from outside the container as given files inside the container
volumes:
- ./CODE:/var/albot-cpp/CODE
- ./IXWebSocket:/var/albot-cpp/IXWebSocket
- ./.env:/var/albot-cpp/.env
- ./bot.out.json:/var/albot-cpp/bot.out.json
- ./bot.json:/var/albot-cpp/bot.json
- ./GAME_VERSION:/var/albot-cpp/GAME_VERSION